Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestStructTagObjectKey (0.27 sec)

  1. src/encoding/json/tagkey_test.go

    }
    
    type badCodeTag struct {
    	Z string `json:" !\"#&'()*+,."`
    }
    
    type spaceTag struct {
    	Q string `json:"With space"`
    }
    
    type unicodeTag struct {
    	W string `json:"Ελλάδα"`
    }
    
    func TestStructTagObjectKey(t *testing.T) {
    	tests := []struct {
    		CaseName
    		raw   any
    		value string
    		key   string
    	}{
    		{Name(""), basicLatin2xTag{"2x"}, "2x", "$%-/"},
    		{Name(""), basicLatin3xTag{"3x"}, "3x", "0123456789"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 16:00:37 UTC 2023
    - 2.9K bytes
    - Viewed (0)
Back to top