Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for panicNotBool (0.13 sec)

  1. src/reflect/value.go

    }
    
    // Bool returns v's underlying value.
    // It panics if v's kind is not [Bool].
    func (v Value) Bool() bool {
    	// panicNotBool is split out to keep Bool inlineable.
    	if v.kind() != Bool {
    		v.panicNotBool()
    	}
    	return *(*bool)(v.ptr)
    }
    
    func (v Value) panicNotBool() {
    	v.mustBe(Bool)
    }
    
    var bytesType = rtypeOf(([]byte)(nil))
    
    // Bytes returns v's underlying value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
Back to top