Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 42 of 42 for getTool (0.08 sec)

  1. src/encoding/json/decode.go

    			} else {
    				d.saveError(&UnmarshalTypeError{Value: "bool", Type: v.Type(), Offset: int64(d.readIndex())})
    			}
    		case reflect.Bool:
    			v.SetBool(value)
    		case reflect.Interface:
    			if v.NumMethod() == 0 {
    				v.Set(reflect.ValueOf(value))
    			} else {
    				d.saveError(&UnmarshalTypeError{Value: "bool", Type: v.Type(), Offset: int64(d.readIndex())})
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  2. src/text/template/exec.go

    	panic("not reached")
    }
    
    func (s *state) evalBool(typ reflect.Type, n parse.Node) reflect.Value {
    	s.at(n)
    	if n, ok := n.(*parse.BoolNode); ok {
    		value := reflect.New(typ).Elem()
    		value.SetBool(n.True)
    		return value
    	}
    	s.errorf("expected bool; found %s", n)
    	panic("not reached")
    }
    
    func (s *state) evalString(typ reflect.Type, n parse.Node) reflect.Value {
    	s.at(n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
Back to top