Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for val (0.18 sec)

  1. src/archive/tar/strconv_test.go

    	}
    
    	for _, v := range vectors {
    		key, val, res, err := parsePAXRecord(v.in)
    		ok := (err == nil)
    		if ok != v.ok {
    			if v.ok {
    				t.Errorf("parsePAXRecord(%q): got parsing failure, want success", v.in)
    			} else {
    				t.Errorf("parsePAXRecord(%q): got parsing success, want failure", v.in)
    			}
    		}
    		if v.ok && (key != v.wantKey || val != v.wantVal) {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
  2. src/cmd/cgo/gcc.go

    					// Found it. Now find data section.
    					if i := int(s.Section); 0 <= i && i < len(f.Sections) {
    						sect := f.Sections[i]
    						val := removeTag(s.Value)
    						if sect.Addr <= val && val < sect.Addr+sect.Size {
    							if sdat, err := sect.Data(); err == nil {
    								data := sdat[val-sect.Addr:]
    								ints = make([]int64, len(data)/8)
    								for i := range ints {
    									ints[i] = int64(bo.Uint64(data[i*8:]))
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  3. src/bufio/bufio_test.go

    	if n, err := r.WriteTo(w); err != nil || n != int64(len(input)) {
    		t.Fatalf("r.WriteTo(w) = %d, %v, want %d, nil", n, err, len(input))
    	}
    
    	for i, val := range w.Bytes() {
    		if val != input[i] {
    			t.Errorf("after write: out[%d] = %#x, want %#x", i, val, input[i])
    		}
    	}
    }
    
    type errorWriterToTest struct {
    	rn, wn     int
    	rerr, werr error
    	expected   error
    }
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  4. api/go1.5.txt

    pkg go/types, method (*Const) Pkg() *Package
    pkg go/types, method (*Const) Pos() token.Pos
    pkg go/types, method (*Const) String() string
    pkg go/types, method (*Const) Type() Type
    pkg go/types, method (*Const) Val() constant.Value
    pkg go/types, method (*Func) Exported() bool
    pkg go/types, method (*Func) FullName() string
    pkg go/types, method (*Func) Id() string
    pkg go/types, method (*Func) Name() string
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
  5. doc/go1.17_spec.html

    	// type of s is string
    	// s == a[i]
    	g(i, s)
    }
    
    var key string
    var val interface{}  // element type of m is assignable to val
    m := map[string]int{"mon":0, "tue":1, "wed":2, "thu":3, "fri":4, "sat":5, "sun":6}
    for key, val = range m {
    	h(key, val)
    }
    // key == last map key encountered in iteration
    // val == map[key]
    
    var ch chan Work = producer()
    for w := range ch {
    	doWork(w)
    }
    
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/flags/flags.go

    type MultiFlag []string
    
    func (m *MultiFlag) String() string {
    	if len(*m) == 0 {
    		return ""
    	}
    	return fmt.Sprint(*m)
    }
    
    func (m *MultiFlag) Set(val string) error {
    	(*m) = append(*m, val)
    	return nil
    }
    
    func Usage() {
    	fmt.Fprintf(os.Stderr, "usage: asm [options] file.s ...\n")
    	fmt.Fprintf(os.Stderr, "Flags:\n")
    	flag.PrintDefaults()
    	os.Exit(2)
    }
    
    func Parse() {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Aug 22 19:18:23 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  7. api/go1.13.txt

    pkg errors, func As(error, interface{}) bool
    pkg errors, func Is(error, error) bool
    pkg errors, func Unwrap(error) error
    pkg go/constant, func Make(interface{}) Value
    pkg go/constant, func Val(Value) interface{}
    pkg go/token, func IsExported(string) bool
    pkg go/token, func IsIdentifier(string) bool
    pkg go/token, func IsKeyword(string) bool
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/asm/asm.go

    		case 4:
    			nameAddr.Sym.WriteFloat32(p.ctxt, nameAddr.Offset, float32(valueAddr.Val.(float64)))
    		case 8:
    			nameAddr.Sym.WriteFloat64(p.ctxt, nameAddr.Offset, valueAddr.Val.(float64))
    		default:
    			p.errorf("bad float size for DATA argument: %d", sz)
    		}
    	case obj.TYPE_SCONST:
    		nameAddr.Sym.WriteString(p.ctxt, nameAddr.Offset, int(sz), valueAddr.Val.(string))
    	case obj.TYPE_ADDR:
    		if sz == p.arch.PtrSize {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 25.3K bytes
    - Viewed (0)
  9. api/go1.txt

    pkg debug/dwarf, type EnumType struct, Val []*EnumValue
    pkg debug/dwarf, type EnumType struct, embedded CommonType
    pkg debug/dwarf, type EnumValue struct
    pkg debug/dwarf, type EnumValue struct, Name string
    pkg debug/dwarf, type EnumValue struct, Val int64
    pkg debug/dwarf, type Field struct
    pkg debug/dwarf, type Field struct, Attr Attr
    pkg debug/dwarf, type Field struct, Val interface{}
    pkg debug/dwarf, type FloatType struct
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
  10. api/go1.16.txt

    pkg syscall (darwin-arm64), type Flock_t struct, Type int16
    pkg syscall (darwin-arm64), type Flock_t struct, Whence int16
    pkg syscall (darwin-arm64), type Fsid struct
    pkg syscall (darwin-arm64), type Fsid struct, Val [2]int32
    pkg syscall (darwin-arm64), type Fstore_t struct
    pkg syscall (darwin-arm64), type Fstore_t struct, Bytesalloc int64
    pkg syscall (darwin-arm64), type Fstore_t struct, Flags uint32
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Dec 02 16:30:41 GMT 2022
    - 479.2K bytes
    - Viewed (0)
Back to top