Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for relevantCaller (0.35 sec)

  1. src/net/http/server.go

    	if code < 100 || code > 999 {
    		panic(fmt.Sprintf("invalid WriteHeader code %v", code))
    	}
    }
    
    // relevantCaller searches the call stack for the first function outside of net/http.
    // The purpose of this function is to provide more helpful error messages.
    func relevantCaller() runtime.Frame {
    	pc := make([]uintptr, 16)
    	n := runtime.Callers(1, pc)
    	frames := runtime.CallersFrames(pc[:n])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
Back to top