Added some documentation on how configuration files should be laid out

This commit is contained in:
Sasha Koshka 2022-11-26 21:04:00 -05:00
parent e60a990d10
commit 05ddfef584

View File

@ -38,16 +38,24 @@ const (
// string // string
TypeString Type = iota TypeString Type = iota
// image/color.RGBA // Type: image/color.RGBA
// Represented as a 24 bit hexidecimal number (case insensitive)
// preceded with a # sign where the first two digits represent the red
// channel, the middle two digits represent the green channel, and the
// last two digits represent the blue channel.
TypeColor TypeColor
// int // Type: int
// An integer literal, like 123456789
TypeInteger TypeInteger
// float64 // Type: float64
// A floating point literal, like 1234.56789
TypeFloat TypeFloat
// bool // Type: bool
// Values true, yes, on, and 1 are all truthy (case insensitive) and
// anything else is falsy.
TypeBoolean TypeBoolean
) )