Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestStringKind (0.11 sec)

  1. src/encoding/json/decode_test.go

    }
    
    type MustNotUnmarshalText struct{}
    
    func (x MustNotUnmarshalText) UnmarshalText(text []byte) error {
    	return errors.New("MustNotUnmarshalText was used")
    }
    
    func TestStringKind(t *testing.T) {
    	type stringKind string
    	want := map[stringKind]int{"foo": 42}
    	data, err := Marshal(want)
    	if err != nil {
    		t.Fatalf("Marshal error: %v", err)
    	}
    	var got map[stringKind]int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:40:14 UTC 2024
    - 67.6K bytes
    - Viewed (0)
Back to top