mirror of https://github.com/skanehira/tson
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
294 B
Go
26 lines
294 B
Go
5 years ago
|
package gui
|
||
|
|
||
|
type Type int
|
||
|
|
||
|
const (
|
||
|
Unknown Type = iota
|
||
|
Root
|
||
|
Object
|
||
|
Array
|
||
|
Key
|
||
|
Value
|
||
|
)
|
||
|
|
||
|
var TypeMap = map[Type]string{
|
||
|
Unknown: "unknown",
|
||
|
Root: "root",
|
||
|
Object: "object",
|
||
|
Array: "array",
|
||
|
Key: "key",
|
||
|
Value: "value",
|
||
|
}
|
||
|
|
||
|
func (t Type) String() string {
|
||
|
return TypeMap[t]
|
||
|
}
|