config

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(input []byte, path string) ([]byte, error)

Format auto-formats the input configuration and returns the formatted result.

The "path" argument is used only for error messages. It doesn't have to be a valid path. For inputs from stdin, it is common to use a synthetic path value such as "<stdin>".

If input is already formatted, it will be returned as-is in the result.

This does not require valid Waypoint configuration. This will work with almost any HCL-formatted file. However, we may introduce Waypoint-specific opinions at some point so this is in the Waypoint configuration package.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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