1 Star 0 Fork 0

gxj / delve

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
locationsprog.go 564 Bytes
一键复制 编辑 原始数据 按行查看 历史
Alessandro Arzilli 提交于 2016-05-29 21:20 . Go 1.7 compatibility (#524)
package main
import (
"fmt"
"io/ioutil"
)
type SomeType struct {
}
type OtherType struct {
}
func (a *SomeType) String() string {
return "SomeTypeObject"
}
func (a *OtherType) String() string {
return "OtherTypeObject"
}
func (a *SomeType) SomeFunction() {
fmt.Printf("SomeFunction called\n")
}
func anotherFunction() {
fmt.Printf("anotherFunction called\n")
}
func main() {
var a SomeType
var b OtherType
i := 10
fmt.Printf("%s %s %v\n", a.String(), b.String(), i)
a.SomeFunction()
anotherFunction()
ioutil.ReadFile("nonexistent.file.txt")
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/guoxiaojun19991011/delve.git
git@gitee.com:guoxiaojun19991011/delve.git
guoxiaojun19991011
delve
delve
v0.12.1

搜索帮助

344bd9b3 5694891 D2dac590 5694891