Documentation
¶
Index ¶
- type Handler
- func (h *Handler) Extensions() []string
- func (h *Handler) Format() formats.Format
- func (h *Handler) Generate(w io.Writer, data map[string]string) error
- func (h *Handler) GenerateFile(filename string, data map[string]string) error
- func (h *Handler) GenerateString(data map[string]string) (string, error)
- func (h *Handler) Parse(r io.Reader) (map[string]string, error)
- func (h *Handler) ParseFile(filename string) (map[string]string, error)
- func (h *Handler) ParseString(content string) (map[string]string, error)
- func (h *Handler) Validate(content []byte) error
- func (h *Handler) ValidateKey(_ string) error
- func (h *Handler) ValidateValue(_ string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler implements YAML format handling
func NewHandler ¶
NewHandler creates a new YAML handler
func (*Handler) Extensions ¶
Extensions returns supported file extensions
func (*Handler) GenerateFile ¶
GenerateFile writes YAML to file
func (*Handler) GenerateString ¶
GenerateString generates YAML string
func (*Handler) ParseString ¶
ParseString parses YAML from string
func (*Handler) ValidateKey ¶
ValidateKey validates a YAML key
func (*Handler) ValidateValue ¶
ValidateValue validates a YAML value
Click to show internal directories.
Click to hide internal directories.