Documentation
¶
Index ¶
- func Bytes(b []byte) ([]byte, error)
- func BytesRestricted(b []byte, noUnset, noEmpty bool) ([]byte, error)
- func ReadFile(filename string) ([]byte, error)
- func ReadFileRestricted(filename string, noUnset, noEmpty bool) ([]byte, error)
- func String(s string) (string, error)
- func StringRestricted(s string, noUnset, noEmpty bool) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bytes ¶
Bytes returns the bytes represented by the parsed template after processing it. If the parser encounters invalid input, it returns an error describing the failure.
func BytesRestricted ¶
BytesRestricted returns the bytes represented by the parsed template after processing it. If the parser encounters invalid input, or a restriction is violated, it returns an error describing the failure.
func ReadFile ¶
ReadFile call io.ReadFile with the given file name. If the call to io.ReadFile failed it returns the error; otherwise it will call envsubst.Bytes with the returned content.
func ReadFileRestricted ¶
ReadFileRestricted calls io.ReadFile with the given file name. If the call to io.ReadFile failed it returns the error; otherwise it will call envsubst.Bytes with the returned content.
Types ¶
This section is empty.