Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 576 for Int8 (0.03 sec)

  1. src/cmd/go/internal/lockedfile/internal/filelock/filelock_other.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !unix && !windows
    
    package filelock
    
    import (
    	"errors"
    	"io/fs"
    )
    
    type lockType int8
    
    const (
    	readLock = iota + 1
    	writeLock
    )
    
    func lock(f File, lt lockType) error {
    	return &fs.PathError{
    		Op:   lt.String(),
    		Path: f.Name(),
    		Err:  errors.ErrUnsupported,
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 17 02:24:35 UTC 2023
    - 563 bytes
    - Viewed (0)
  2. test/typeparam/issue50121.dir/a.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    import (
    	"math/rand"
    )
    
    type Integer interface {
    	~int | ~int8 | ~int16 | ~int32 | ~int64 |
    	~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr
    }
    
    type Builder[T Integer] struct{}
    
    func (r Builder[T]) New() T {
    	return T(rand.Int())
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 03 03:13:33 UTC 2022
    - 495 bytes
    - Viewed (0)
  3. api/except.txt

    pkg syscall (freebsd-386), type Stat_t struct, Pad_cgo_0 [8]uint8
    pkg syscall (freebsd-386), type Stat_t struct, Rdev uint32
    pkg syscall (freebsd-386), type Statfs_t struct, Mntfromname [88]int8
    pkg syscall (freebsd-386), type Statfs_t struct, Mntonname [88]int8
    pkg syscall (freebsd-386-cgo), const AF_MAX = 38
    pkg syscall (freebsd-386-cgo), const DLT_MATCHING_MAX = 242
    pkg syscall (freebsd-386-cgo), const ELAST = 94
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:13:30 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  4. test/fixedbugs/issue64606.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func main() {
    	var o any = uint64(5)
    	switch o.(type) {
    	case int:
    		goto ret
    	case int8:
    		goto ret
    	case int16:
    		goto ret
    	case int32:
    		goto ret
    	case int64:
    		goto ret
    	case float32:
    		goto ret
    	case float64:
    		goto ret
    	default:
    		goto ret
    	}
    ret:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 00:29:01 UTC 2023
    - 463 bytes
    - Viewed (0)
  5. test/fixedbugs/issue7316.go

    const tpl = `
    func init() {
    	var i %s
    	j := %s(i)
    	_ = %s(j)
    }
    `
    
    func main() {
    	fmt.Println("package main")
    	ntypes := []string{
    		"byte", "rune", "uintptr",
    		"float32", "float64",
    		"int", "int8", "int16", "int32", "int64",
    		"uint", "uint8", "uint16", "uint32", "uint64",
    	}
    	for i, from := range ntypes {
    		for _, to := range ntypes[i:] {
    			fmt.Printf(tpl, from, to, from)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 777 bytes
    - Viewed (0)
  6. test/typeparam/typeswitch1.go

    		println("struct{T,T}")
    	default:
    		println("other")
    	}
    }
    func main() {
    	f[float64](float64(6))
    	f[float64](int(7))
    	f[float64](int32(8))
    	f[float64](struct{ a, b float64 }{a: 1, b: 2})
    	f[float64](int8(9))
    	f[int32](int32(7))
    	f[int](int32(7))
    	f[any](int(10))
    	f[interface{ M() }](int(11))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 07 13:47:58 UTC 2022
    - 648 bytes
    - Viewed (0)
  7. utils/utils_test.go

    			}
    		})
    	}
    }
    
    func TestToString(t *testing.T) {
    	tests := []struct {
    		name string
    		in   interface{}
    		out  string
    	}{
    		{"int", math.MaxInt64, "9223372036854775807"},
    		{"int8", int8(math.MaxInt8), "127"},
    		{"int16", int16(math.MaxInt16), "32767"},
    		{"int32", int32(math.MaxInt32), "2147483647"},
    		{"int64", int64(math.MaxInt64), "9223372036854775807"},
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Feb 19 03:42:25 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. test/typeparam/smallest.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"fmt"
    )
    
    type Ordered interface {
    	~int | ~int8 | ~int16 | ~int32 | ~int64 |
    		~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr |
    		~float32 | ~float64 |
    		~string
    }
    
    func Smallest[T Ordered](s []T) T {
    	r := s[0] // panics if slice is empty
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 825 bytes
    - Viewed (0)
  9. test/mergemul.go

    	tests += makeMergeSubTest(m1, m2, k, "64")
    	tests += "\n"
    	return tests
    }
    
    func main() {
    	fmt.Println(`package main
    
    import "fmt"
    
    var n8 int8 = 42
    var n16 int16 = 42
    var n32 int32 = 42
    var n64 int64 = 42
    
    func main() {
        var a8, b8 int8
        var a16, b16 int16
        var a32, b32 int32
        var a64, b64 int64
    `)
    
    	fmt.Println(makeAllSizes(03, 05, 0)) // 3*n + 5*n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Sep 03 14:29:38 UTC 2017
    - 3.2K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/vet_asm.txt

    go vet -json -asmdecl a
    stderr '"a": {'
    stderr   '"asmdecl":'
    stderr     '"posn": ".*asm.s:2:1",'
    stderr     '"message": ".*invalid MOVW.*"'
    
    -- a/a.go --
    package a
    
    func f(x int8)
    
    -- a/asm.s --
    TEXT ·f(SB),0,$0-1
    	MOVW	x+0(FP), AX
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 590 bytes
    - Viewed (0)
Back to top