feat: add func

This commit is contained in:
2025-10-13 12:45:11 +08:00
parent 8d68e6106e
commit 86c1a4a3a9
3 changed files with 8 additions and 1 deletions

View File

@@ -78,6 +78,11 @@ func (oj *ownJSON) UnmarshalWithNumberForIOReaderIgnoreError(ioReader io.ReadClo
return
}
// UnmarshalForString ...
func (oj *ownJSON) UnmarshalForString(input string, receiver any) error {
return oj.Unmarshal([]byte(input), receiver)
}
// UnmarshalWithNumberForString 字符串转结构体
//
// Author : go_developer@163.com<白茶清欢>