package structure const ( defaultLen = 32 // 默认创建的 value 大小 ) type DynamicType int8 const ( DynamicNull = DynamicType(iota) DynamicInt DynamicFloat DynamicString ) type ResultConn struct { Result []string UpdateSize int64 // 操作以后发生变更的大小, 负数表示减小 } func NewResult(s ...string) *ResultConn { res := make([]string, len(s)) res = append(res, s...) return &ResultConn{ Result: res, } }