Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for food (0.12 sec)

  1. src/cmd/api/testdata/src/pkg/p1/p1.go

    func (*B) JustOnB()             {}
    func (*common) OnBothTandBPtr() {}
    func (common) OnBothTandBVal()  {}
    
    type EmbedSelector struct {
    	Time
    }
    
    const (
    	foo          = "foo"
    	foo2  string = "foo2"
    	truth        = foo == "foo" || foo2 == "foo2"
    )
    
    func ellipsis(...string) {}
    
    func Now() Time {
    	var now Time
    	return now
    }
    
    var x = &S{
    	Public:     nil,
    	private:    nil,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  2. src/cmd/cgo/doc.go

    An error on not-declared:1 indicates that foo is undeclared.
    An error on not-type:1 indicates that foo is not a type (if declared at all, it is an identifier).
    An error on not-int-const:1 indicates that foo is not an integer constant.
    An error on not-num-const:1 indicates that foo is not a number constant.
    An error on not-str-lit:1 indicates that foo is not a string literal.
    An error on not-signed-int-const:1 indicates that foo is not a signed integer constant.
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/issue24161e0/main.go

      static CFDataRef SecKeyCreateSignature(SecKeyRef key, SecKeyAlgorithm algorithm, CFDataRef dataToSign, CFErrorRef *error){return NULL;}
      #define kSecKeyAlgorithmECDSASignatureDigestX962SHA1 foo()
      static SecKeyAlgorithm foo(void){return NULL;}
    #endif
    */
    import "C"
    import "testing"
    
    func f1() {
    	C.SecKeyCreateSignature(0, C.kSecKeyAlgorithmECDSASignatureDigestX962SHA1, 0, nil)
    }
    
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 919 bytes
    - Viewed (0)
  4. src/archive/zip/writer_test.go

    )
    
    // TODO(adg): a more sophisticated test suite
    
    type WriteTest struct {
    	Name   string
    	Data   []byte
    	Method uint16
    	Mode   fs.FileMode
    }
    
    var writeTests = []WriteTest{
    	{
    		Name:   "foo",
    		Data:   []byte("Rabbits, guinea pigs, gophers, marsupial rats, and quolls."),
    		Method: Store,
    		Mode:   0666,
    	},
    	{
    		Name:   "bar",
    		Data:   nil, // large data set in the test
    		Method: Deflate,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/testdata/arm.s

    //	{
    //		outcode($1, $2, &nullgen, 0, &nullgen);
    //	}
    	BEQ	2(PC)
    	RET
    
    // More B/BL cases, and canonical names JMP, CALL.
    
    	BEQ	2(PC)
    	B	foo(SB) // JMP foo(SB)
    	BL	foo(SB) // CALL foo(SB)
    	BEQ	2(PC)
    	JMP	foo(SB)
    	CALL	foo(SB)
    
    // CMPF and CMPD are special.
    	CMPF F1, F2
    	CMPD F1, F2
    
    // AND
    	AND	$255, R0, R1         // ff1000e2
    	AND	$4278190080, R0, R1  // ff1400e2
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 15 20:51:01 GMT 2023
    - 69K bytes
    - Viewed (0)
  6. src/cmd/api/testdata/src/pkg/p1/golden.txt

    pkg p1, const ConstChase2 ideal-int
    pkg p1, const ConversionConst = 5
    pkg p1, const ConversionConst MyInt
    pkg p1, const FloatConst = 1.5  // 3/2
    pkg p1, const FloatConst ideal-float
    pkg p1, const StrConst = "foo"
    pkg p1, const StrConst ideal-string
    pkg p1, func Bar(int8, int16, int64)
    pkg p1, func Bar1(int8, int16, int64) uint64
    pkg p1, func Bar2(int8, int16, int64) (uint8, uint64)
    pkg p1, func BarE() Error
    pkg p1, func Now() Time
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 3.6K bytes
    - Viewed (0)
  7. src/archive/tar/reader_test.go

    			}
    		}
    	}
    }
    
    func TestInsecurePaths(t *testing.T) {
    	t.Setenv("GODEBUG", "tarinsecurepath=0")
    	for _, path := range []string{
    		"../foo",
    		"/foo",
    		"a/b/../../../c",
    	} {
    		var buf bytes.Buffer
    		tw := NewWriter(&buf)
    		tw.WriteHeader(&Header{
    			Name: path,
    		})
    		const securePath = "secure"
    		tw.WriteHeader(&Header{
    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)
  8. src/cmd/cgo/gcc.go

    		if oldType == nil {
    			tt := *t
    			tt.Go = sub.Go
    			tt.BadPointer = sub.BadPointer
    			typedef[name.Name] = &tt
    		}
    
    		// If sub.Go.Name is "_Ctype_struct_foo" or "_Ctype_union_foo" or "_Ctype_class_foo",
    		// use that as the Go form for this typedef too, so that the typedef will be interchangeable
    		// with the base type.
    		// In -godefs mode, do this for all typedefs.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/testdata/arm64.s

    // RET
    	RET
    	RET	foo(SB)
    
    // B/BL/B.cond cases, and canonical names JMP, CALL.
    	BL	1(PC)      // CALL 1(PC)
    	BL	(R2)       // CALL (R2)
    	BL	foo(SB)    // CALL foo(SB)
    	BL	bar<>(SB)  // CALL bar<>(SB)
    	B	foo(SB)    // JMP foo(SB)
    	BEQ	1(PC)
    	BEQ	2(PC)
    	TBZ	$1, R1, 2(PC)
    	TBNZ	$2, R2, 2(PC)
    	JMP	foo(SB)
    	CALL	foo(SB)
    
    // ADR
    	ADR	next, R11     // ADR R11 // 2b000010
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 08 03:28:17 GMT 2023
    - 94.9K bytes
    - Viewed (0)
  10. src/bytes/example_test.go

    func ExampleFields() {
    	fmt.Printf("Fields are: %q", bytes.Fields([]byte("  foo bar  baz   ")))
    	// Output: Fields are: ["foo" "bar" "baz"]
    }
    
    func ExampleFieldsFunc() {
    	f := func(c rune) bool {
    		return !unicode.IsLetter(c) && !unicode.IsNumber(c)
    	}
    	fmt.Printf("Fields are: %q", bytes.FieldsFunc([]byte("  foo1;bar2,baz3..."), f))
    	// Output: Fields are: ["foo1" "bar2" "baz3"]
    }
    
    func ExampleHasPrefix() {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
Back to top