config.go 412 Bytes
Newer Older
1
2
package fs

3
4
import "iter"

5
6
7
8
9
10
11
12
type Config interface {
	Architecture() string
	String(string, ...string) string
	Uint(string, ...uint32) uint32
	Float(string, ...float32) float32
	Bool(string, ...bool) bool

	Strings(string, ...[]string) []string
Michael Yang's avatar
Michael Yang committed
13
	Ints(string, ...[]int32) []int32
14
	Floats(string, ...[]float32) []float32
Michael Yang's avatar
Michael Yang committed
15
	Bools(string, ...[]bool) []bool
16
17
18
19

	Len() int
	Keys() iter.Seq[string]
	Value(key string) any
20
}