Documentation ¶
Overview ¶
Package settings provides support for working with the data in settings.capnp; see the comments in that file for an overview.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source interface { // Get the value of a setting by name, which must have type string (panics otherwise). GetString(name string) string // Get the value of a setting by name, which must have type uint16 (panics otherwise). GetUint16(name string) uint16 }
A Source can be queried for settings.
var Environ Source = envSource{}
Environ is a Source that pulls settings from environment variables
Click to show internal directories.
Click to hide internal directories.