Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for jsonValueString (0.62 sec)

  1. src/log/slog/json_handler_test.go

    		{math.Inf(-1), `"!ERROR:json: unsupported value: -Inf"`},
    		{io.EOF, `"EOF"`},
    	} {
    		got := jsonValueString(AnyValue(test.value))
    		if got != test.want {
    			t.Errorf("%v: got %s, want %s", test.value, got, test.want)
    		}
    	}
    }
    
    func jsonValueString(v Value) string {
    	var buf []byte
    	s := &handleState{h: &commonHandler{json: true}, buf: (*buffer.Buffer)(&buf)}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 11 17:06:26 UTC 2023
    - 6.5K bytes
    - Viewed (0)
Back to top