V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
yakczh
V2EX  ›  Go 编程语言

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

  •  
  •   yakczh · 2013 年 1 月 2 日 · 1993 次点击
    这是一个创建于 4846 天前的主题,其中的信息可能已经有所发展或是发生改变。
    "A method is a function with an implicit first argument, called a receiver."

    method的语法如下:
    func (r ReceiverType) funcName(parameters) (results)
    目前尚无回复
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2733 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 15:04 · PVG 23:04 · LAX 08:04 · JFK 11:04
    ♥ Do have faith in what you're doing.