Added JSON initialization function

This commit is contained in:
朱宗辉 2024-11-16 02:20:21 +08:00
parent e7564a55ac
commit 75eefd484a

View File

@ -19,6 +19,10 @@ type JSON struct {
Data any
}
func NewJSON(data any) Render {
return &JSON{Data: data}
}
// IndentedJSON contains the given interface object.
type IndentedJSON struct {
Data any