mirror of
https://github.com/will-moss/isaiah.git
synced 2024-08-22 23:27:15 +03:00
12 lines
164 B
Go
12 lines
164 B
Go
package json
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// Alias for json.Marshal, without returning any error
|
|
func Marshal(v any) []byte {
|
|
r, _ := json.Marshal(v)
|
|
return r
|
|
}
|