Path: blob/main/vendor/github.com/pelletier/go-toml/v2/unstable/kind.go
2893 views
package unstable12import "fmt"34// Kind represents the type of TOML structure contained in a given Node.5type Kind int67const (8// Meta9Invalid Kind = iota10Comment11Key1213// Top level structures14Table15ArrayTable16KeyValue1718// Containers values19Array20InlineTable2122// Values23String24Bool25Float26Integer27LocalDate28LocalTime29LocalDateTime30DateTime31)3233// String implementation of fmt.Stringer.34func (k Kind) String() string {35switch k {36case Invalid:37return "Invalid"38case Comment:39return "Comment"40case Key:41return "Key"42case Table:43return "Table"44case ArrayTable:45return "ArrayTable"46case KeyValue:47return "KeyValue"48case Array:49return "Array"50case InlineTable:51return "InlineTable"52case String:53return "String"54case Bool:55return "Bool"56case Float:57return "Float"58case Integer:59return "Integer"60case LocalDate:61return "LocalDate"62case LocalTime:63return "LocalTime"64case LocalDateTime:65return "LocalDateTime"66case DateTime:67return "DateTime"68}69panic(fmt.Errorf("Kind.String() not implemented for '%d'", k))70}717273