mirror of
https://github.com/xiaoqidun/goini.git
synced 2024-11-22 14:36:46 +08:00
使用结构体指针
This commit is contained in:
parent
007378e35e
commit
f236ad259c
4
goini.go
4
goini.go
@ -16,8 +16,8 @@ type GoINI struct {
|
||||
commonField string
|
||||
}
|
||||
|
||||
func NewGoINI() GoINI {
|
||||
return GoINI{
|
||||
func NewGoINI() *GoINI {
|
||||
return &GoINI{
|
||||
commonField: "BuiltCommon",
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user