Documentation
¶
Index ¶
- Variables
- func CustomSWriteJson(c jsoniter.API, body any) (string, error)
- func DecodeJson(reader io.Reader, ptr any) error
- func EncodeJson(writer io.Writer, body any) error
- func LowercaseNamingStrategy(name string) string
- func ParseJson(body []byte, ptr any) error
- func SParseJson(body string, ptr any) error
- func SWriteIndent(body any) (string, error)
- func SWriteJson(body any) (string, error)
- func WriteJson(body any) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NamingStrategyTranslate = LowercaseNamingStrategy
)
Functions ¶
func CustomSWriteJson ¶
Write json as string using customized jsoniter.Config.
func LowercaseNamingStrategy ¶
Change first rune to lower case.
func SWriteIndent ¶ added in v0.1.12
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.