V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
yakczh

感觉go的func与js的call,apply有一拼

  •  
  •   yakczh · Jan 2, 2013 · 2046 views
    This topic created in 4875 days ago, the information mentioned may be changed or developed.
    "A method is a function with an implicit first argument, called a receiver."

    method的语法如下:
    func (r ReceiverType) funcName(parameters) (results)
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1089 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 23:30 · PVG 07:30 · LAX 16:30 · JFK 19:30
    ♥ Do have faith in what you're doing.