Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for val (0.15 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 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
  2. 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 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  3. 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 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  4. 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 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 22 19:18:23 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  5. 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 May 07 11:14:38 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
  6. 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 May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K 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 May 07 11:14:38 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
  8. misc/ios/go_ios_exec.go

    				hasKey = true
    			} else if hasKey {
    				var val string
    				var err error
    				switch n := tok.Name.Local; n {
    				case "true", "false":
    					// Bools are represented as <true/> and <false/>.
    					val = n
    					err = d.Skip()
    				default:
    					err = d.DecodeElement(&val, &tok)
    				}
    				if err != nil {
    					return nil, err
    				}
    				values[key] = val
    				hasKey = false
    			} else {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/parse.go

    		}
    	}
    	if haveConstant {
    		p.back()
    		if p.have(scanner.Float) {
    			if prefix != '$' {
    				p.errorf("floating-point constant must be an immediate")
    			}
    			a.Type = obj.TYPE_FCONST
    			a.Val = p.floatExpr()
    			// fmt.Printf("FCONST %s\n", obj.Dconv(&emptyProg, 0, a))
    			p.expectOperandEnd()
    			return
    		}
    		if p.have(scanner.String) {
    			if prefix != '$' {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  10. 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 May 07 11:14:38 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (2)
Back to top