Go:encoding/json
lastmod 2025-11-20created 2025-11-202 edits
json.Marshal
The signature shows that it takes an argument of type interface{}, which accepts any type in Go, and returns a byte slice.
Example
See also
Favorite site
Pages that link here