settings

package
v0.0.0-...-fd1ce1a Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

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