Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Time3339 (0.1 sec)

  1. src/encoding/json/decode_test.go

    	}
    	if !reflect.DeepEqual(out, want) {
    		t.Errorf("Unmarshal:\n\tgot:  %+v\n\twant: %+v", out, want)
    	}
    }
    
    // Time3339 is a time.Time which encodes to and from JSON
    // as an RFC 3339 time in UTC.
    type Time3339 time.Time
    
    func (t *Time3339) UnmarshalJSON(b []byte) error {
    	if len(b) < 2 || b[0] != '"' || b[len(b)-1] != '"' {
    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