2022年5月

type Type int

const (
    done Type = iota
    doing
)

func (t Type) String() string {
    return []string{"done", "doing"}[t]
}