constants_test.go 183 B

12345678910111213
  1. package constants
  2. import (
  3. "encoding/json"
  4. "fmt"
  5. "testing"
  6. )
  7. func TestPayTypeString(t *testing.T) {
  8. pt := PaymentType(1)
  9. buf, _ := json.Marshal(pt)
  10. fmt.Println(string(buf))
  11. }