使用结构体指针

This commit is contained in:
xiaoqidun 2019-10-25 10:32:13 +08:00
parent 007378e35e
commit f236ad259c

View File

@ -16,8 +16,8 @@ type GoINI struct {
commonField string
}
func NewGoINI() GoINI {
return GoINI{
func NewGoINI() *GoINI {
return &GoINI{
commonField: "BuiltCommon",
}
}