package constants import ( "encoding/json" "fmt" "testing" ) func TestPayTypeString(t *testing.T) { pt := PaymentType(1) buf, _ := json.Marshal(pt) fmt.Println(string(buf)) }