struct_field_case_test.go 426 B

123456789101112131415161718192021222324252627282930
  1. package test
  2. func init() {
  3. testCases = append(testCases,
  4. (*struct {
  5. Upper bool `json:"M"`
  6. Lower bool `json:"m"`
  7. })(nil),
  8. )
  9. asymmetricTestCases = append(asymmetricTestCases, [][2]interface{}{
  10. {
  11. (*struct {
  12. Field string
  13. })(nil),
  14. (*struct {
  15. FIELD string
  16. })(nil),
  17. },
  18. {
  19. (*struct {
  20. F1 string
  21. F2 string
  22. F3 string
  23. })(nil),
  24. (*struct {
  25. F1 string
  26. })(nil),
  27. },
  28. }...)
  29. }