Documentation
¶
Overview ¶
Package dump can dump a Go data structure to Go source file, so that it can be statically embedded into other code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = Options{ StripPackageNames: false, HidePrivateFields: true, VariableName: "Obj", VariableDescription: "", }
Config is the default config used when calling Dump
Functions ¶
func GetPointers ¶
GetPointers recursively maps all pointers mentioned in a tree, breaking circular references, and provides a list of: * all pointers * all pointers that were referenced at least twice * all pointers that point to primitive type
Types ¶
type Options ¶
type Options struct { HomePackage string VariableName string VariableDescription string StripPackageNames bool HidePrivateFields bool }
Options represents configuration option
Click to show internal directories.
Click to hide internal directories.