Documentation
¶
Overview ¶
Package file is the file source for orb/config.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TempFile ¶
TempFile will take a byte sequence and write it to a temporary file. This is useful if you want to parse a config from memory.
If at any point an erro occurs, it will panic. It does not return the error as the probability of one occurring is small, and now you can use it directly within your config array definition.
Example:
configSource := []config.Source{"config.yaml", file.TempFile(myConfig, "yaml")}
Types ¶
Click to show internal directories.
Click to hide internal directories.