Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for food (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/archive/tar/tar_test.go

    		formats: FormatUSTAR | FormatPAX | FormatGNU,
    	}, {
    		header:  &Header{Xattrs: map[string]string{"foo": "bar"}},
    		paxHdrs: map[string]string{paxSchilyXattr + "foo": "bar"},
    		formats: FormatPAX,
    	}, {
    		header:  &Header{Xattrs: map[string]string{"foo": "bar"}, Format: FormatGNU},
    		paxHdrs: map[string]string{paxSchilyXattr + "foo": "bar"},
    		formats: FormatUnknown,
    	}, {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  6. src/archive/tar/writer_test.go

    		t.Fatal(err)
    	}
    	hdr, err := FileInfoHeader(fileinfo, "")
    	if err != nil {
    		t.Fatalf("os.Stat: %v", err)
    	}
    	contents := strings.Repeat(" ", int(hdr.Size))
    
    	hdr.Xattrs = map[string]string{
    		"foo": "foo",
    		"bar": "bar",
    		"baz": "baz",
    		"qux": "qux",
    	}
    
    	var buf bytes.Buffer
    	writer := NewWriter(&buf)
    	if err := writer.WriteHeader(hdr); err != nil {
    		t.Fatal(err)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/asm.go

    	}
    
    	// Labels are function scoped. Patch existing labels and
    	// create a new label space for this TEXT.
    	p.patch()
    	p.labels = make(map[string]*obj.Prog)
    
    	// Operand 0 is the symbol name in the form foo(SB).
    	// That means symbol plus indirect on SB and no offset.
    	nameAddr := p.address(operands[0])
    	if !p.validSymbol("TEXT", &nameAddr, false) {
    		return
    	}
    	name := symbolName(&nameAddr)
    	next := 1
    
    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