Discover Packages
github.com/jaypipes/ghw
pkg
marshal
package
Version:
v0.23.0
Opens a new window with list of versions in this module.
Published: Feb 10, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 25
Opens a new window with list of known importers.
Documentation
Documentation
¶
SafeJSON returns a string after marshalling the supplied parameter into
JSON. Accepts an optional argument to trigger pretty/indented formatting of
the JSON string.
func SafeYAML(p interface{}) string
SafeYAML returns a string after marshalling the supplied parameter into YAML.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.