feat(app): update
This commit is contained in:
@ -14,7 +14,7 @@ func NewStringBuilder() *StringBuilder {
|
||||
return &StringBuilder{buf: bytes.Buffer{}}
|
||||
}
|
||||
|
||||
func (this *StringBuilder) Append(obj interface{}) *StringBuilder {
|
||||
func (this *StringBuilder) Append(obj any) *StringBuilder {
|
||||
this.buf.WriteString(fmt.Sprintf("%v", obj))
|
||||
return this
|
||||
}
|
||||
@ -24,7 +24,7 @@ func (this *StringBuilder) ToString() string {
|
||||
}
|
||||
|
||||
// 字符串转int32
|
||||
func JsonStr(v interface{}) string {
|
||||
func JsonStr(v any) string {
|
||||
bys, _ := json.Marshal(v)
|
||||
return string(bys)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user