config

package
v0.0.0-...-8bedc6a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2024 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const HCL = "hcl"
View Source
const JSON = "json"
View Source
const TOML = "toml"
View Source
const YAML = "yaml"
View Source
const YML = "yml"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// CLI flags
	Input            string
	Output           string
	Force            bool
	Indent           bool
	EscapeHTML       bool
	OutputPermission uint32

	// Internal values
	InputIsFile            bool
	OutputIsFile           bool
	InputExtension         string
	OutputExtension        string
	InputReader            io.Reader
	ParsedOutputPermission uint32
}

func (*Config) Validate

func (config *Config) Validate() error

Validate checks to see if the config is valid after flags are loaded and returns an error if not

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL