package
0.0.0-20231109225250-22a6844f1611
Repository: https://github.com/pulberg/terraform-docs.git
Documentation: pkg.go.dev
# Functions
New initializes and returns the concrete implementation of format.Engine based on the provided 'name', for example for name of 'json' it will return '*format.JSON' through 'format.NewJSON' function.
NewAsciidocDocument returns new instance of Asciidoc Document.
NewAsciidocTable returns new instance of Asciidoc Table.
NewJSON returns new instance of JSON.
NewMarkdownDocument returns new instance of Markdown Document.
NewMarkdownTable returns new instance of Markdown Table.
NewPretty returns new instance of Pretty.
NewTfvarsHCL returns new instance of TfvarsHCL.
NewTfvarsJSON returns new instance of TfvarsJSON.
NewTOML returns new instance of TOML.
NewXML returns new instance of XML.
NewYAML returns new instance of YAML.
PrintFencedAsciidocCodeBlock prints codes in fences, it automatically detects if the input 'code' contains '\n' it will use multi line fence, otherwise it wraps the 'code' inside single-tick block.
PrintFencedCodeBlock prints codes in fences, it automatically detects if the input 'code' contains '\n' it will use multi line fence, otherwise it wraps the 'code' inside single-tick block.
# Interfaces
Type represents an output format type (e.g.