Documentation ¶ Index ¶ func RunYAML2Struct(w io.Writer, r io.Reader, args []string, opts Options) error type Options Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func RunYAML2Struct ¶ func RunYAML2Struct(w io.Writer, r io.Reader, args []string, opts Options) error RunYAML2Struct converts YAML to Go struct definition Types ¶ type Options ¶ type Options struct { Name string // struct name (default: "Root") Package string // package name (default: "main") Inline bool // inline nested structs OmitEmpty bool // add omitempty to all fields } Options configures the yaml2struct command behavior Source Files ¶ View all Source files yaml2struct.go Click to show internal directories. Click to hide internal directories.