Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for mapError (0.1 sec)

  1. src/internal/reflectlite/set_test.go

    	{new(mapError), new(error), true},
    	{new(*mapError), new(error), true},
    }
    
    type notAnExpr struct{}
    
    func (notAnExpr) Pos() token.Pos { return token.NoPos }
    func (notAnExpr) End() token.Pos { return token.NoPos }
    func (notAnExpr) exprNode()      {}
    
    type notASTExpr interface {
    	Pos() token.Pos
    	End() token.Pos
    	exprNode()
    }
    
    type mapError map[string]string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  2. src/text/template/option.go

    type missingKeyAction int
    
    const (
    	mapInvalid   missingKeyAction = iota // Return an invalid reflect.Value.
    	mapZeroValue                         // Return the zero value for the map element.
    	mapError                             // Error out
    )
    
    type option struct {
    	missingKey missingKeyAction
    }
    
    // Option sets options for the template. Options are described by
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  3. src/text/template/exec.go

    func (s *state) evalField(dot reflect.Value, fieldName string, node parse.Node, args []parse.Node, final, receiver reflect.Value) reflect.Value {
    	if !receiver.IsValid() {
    		if s.tmpl.option.missingKey == mapError { // Treat invalid value as missing map key.
    			s.errorf("nil data; no entry for key %q", fieldName)
    		}
    		return zero
    	}
    	typ := receiver.Type()
    	receiver, isNil := indirect(receiver)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  4. src/math/rand/rand_test.go

    	mean        float64
    	stddev      float64
    	closeEnough float64
    	maxError    float64
    }
    
    func nearEqual(a, b, closeEnough, maxError float64) bool {
    	absDiff := math.Abs(a - b)
    	if absDiff < closeEnough { // Necessary when one value is zero and one value is close to zero.
    		return true
    	}
    	return absDiff/max(math.Abs(a), math.Abs(b)) < maxError
    }
    
    var testSeeds = []int64{1, 1754801282, 1698661970, 1550503961}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  5. src/math/rand/v2/rand_test.go

    	mean        float64
    	stddev      float64
    	closeEnough float64
    	maxError    float64
    }
    
    func nearEqual(a, b, closeEnough, maxError float64) bool {
    	absDiff := math.Abs(a - b)
    	if absDiff < closeEnough { // Necessary when one value is zero and one value is close to zero.
    		return true
    	}
    	return absDiff/max(math.Abs(a), math.Abs(b)) < maxError
    }
    
    var testSeeds = []uint64{1, 1754801282, 1698661970, 1550503961}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  6. src/syscall/ztypes_linux_ppc64le.go

    	Sec  int64
    	Nsec int64
    }
    
    type Timeval struct {
    	Sec  int64
    	Usec int64
    }
    
    type Timex struct {
    	Modes     uint32
    	Pad_cgo_0 [4]byte
    	Offset    int64
    	Freq      int64
    	Maxerror  int64
    	Esterror  int64
    	Status    int32
    	Pad_cgo_1 [4]byte
    	Constant  int64
    	Precision int64
    	Tolerance int64
    	Time      Timeval
    	Tick      int64
    	Ppsfreq   int64
    	Jitter    int64
    	Shift     int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  7. src/syscall/ztypes_linux_arm64.go

    	Sec  int64
    	Nsec int64
    }
    
    type Timeval struct {
    	Sec  int64
    	Usec int64
    }
    
    type Timex struct {
    	Modes     uint32
    	Pad_cgo_0 [4]byte
    	Offset    int64
    	Freq      int64
    	Maxerror  int64
    	Esterror  int64
    	Status    int32
    	Pad_cgo_1 [4]byte
    	Constant  int64
    	Precision int64
    	Tolerance int64
    	Time      Timeval
    	Tick      int64
    	Ppsfreq   int64
    	Jitter    int64
    	Shift     int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go

    )
    
    type Timespec struct {
    	Sec  int64
    	Nsec int64
    }
    
    type Timeval struct {
    	Sec  int64
    	Usec int64
    }
    
    type Timex struct {
    	Modes     uint32
    	Offset    int64
    	Freq      int64
    	Maxerror  int64
    	Esterror  int64
    	Status    int32
    	Constant  int64
    	Precision int64
    	Tolerance int64
    	Time      Timeval
    	Tick      int64
    	Ppsfreq   int64
    	Jitter    int64
    	Shift     int32
    	Stabil    int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go

    )
    
    type Timespec struct {
    	Sec  int32
    	Nsec int32
    }
    
    type Timeval struct {
    	Sec  int32
    	Usec int32
    }
    
    type Timex struct {
    	Modes     uint32
    	Offset    int32
    	Freq      int32
    	Maxerror  int32
    	Esterror  int32
    	Status    int32
    	Constant  int32
    	Precision int32
    	Tolerance int32
    	Time      Timeval
    	Tick      int32
    	Ppsfreq   int32
    	Jitter    int32
    	Shift     int32
    	Stabil    int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go

    )
    
    type Timespec struct {
    	Sec  int64
    	Nsec int64
    }
    
    type Timeval struct {
    	Sec  int64
    	Usec int64
    }
    
    type Timex struct {
    	Modes     uint32
    	Offset    int64
    	Freq      int64
    	Maxerror  int64
    	Esterror  int64
    	Status    int32
    	Constant  int64
    	Precision int64
    	Tolerance int64
    	Time      Timeval
    	Tick      int64
    	Ppsfreq   int64
    	Jitter    int64
    	Shift     int32
    	Stabil    int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top