...

Package xjson

import "oss.terrastruct.com/util-go/xjson"
Overview
Index

Overview ▾

Package xjson implements JSON helpers.

func Marshal

func Marshal(v interface{}) []byte

Marshal is like json.MarshalIndent but does not escape HTML. And does not return an error