摘要: package mainimport ( "fmt")type Test struct {}func (t *Test) Gname() { fmt.Println("test")}func main() { var t *Test t.Gname()}//test 阅读全文
posted @ 2022-12-04 16:49 技术颜良 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 例子1 package mainimport ( "awesomeProject/logger" "fmt" "github.com/opencontainers/runtime-tools/filepath" "os")type Goods struct { ID uint MonTs strin 阅读全文
posted @ 2022-12-04 09:38 技术颜良 阅读(22) 评论(0) 推荐(0) 编辑