Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for val2 (0.53 sec)

  1. src/archive/tar/reader_test.go

    		{"50 tooshort=\n", nil, false},
    		{"13 key1=haha\n13 key2=nana\n13 key3=kaka\n",
    			map[string]string{"key1": "haha", "key2": "nana", "key3": "kaka"}, true},
    		{"13 key1=val1\n13 key2=val2\n8 key1=\n",
    			map[string]string{"key1": "", "key2": "val2"}, true},
    		{"22 GNU.sparse.size=10\n26 GNU.sparse.numblocks=2\n" +
    			"23 GNU.sparse.offset=1\n25 GNU.sparse.numbytes=2\n" +
    			"23 GNU.sparse.offset=3\n25 GNU.sparse.numbytes=4\n",
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/cmd/api/main_test.go

    	switch obj := obj.(type) {
    	case *types.Const:
    		if w.isDeprecated(obj) {
    			w.emitf("const %s //deprecated", obj.Name())
    		}
    		w.emitf("const %s %s", obj.Name(), w.typeString(obj.Type()))
    		x := obj.Val()
    		short := x.String()
    		exact := x.ExactString()
    		if short == exact {
    			w.emitf("const %s = %s", obj.Name(), short)
    		} else {
    			w.emitf("const %s = %s  // %s", obj.Name(), short, exact)
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  7. 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 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 25.3K bytes
    - Viewed (0)
Back to top