- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 284 for reserved (0.09 sec)
-
src/arena/arena_test.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build goexperiment.arenas package arena_test import ( "arena" "testing" ) type T1 struct { n int } type T2 [1 << 20]byte // 1MiB func TestSmoke(t *testing.T) { a := arena.NewArena() defer a.Free() tt := arena.New[T1](a) tt.n = 1
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Oct 12 20:23:36 UTC 2022 - 742 bytes - Viewed (0) -
src/archive/zip/example_test.go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package zip_test import ( "archive/zip" "bytes" "compress/flate" "fmt" "io" "log" "os" ) func ExampleWriter() { // Create a buffer to write our archive to. buf := new(bytes.Buffer) // Create a new zip archive. w := zip.NewWriter(buf)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Jan 27 00:22:03 UTC 2016 - 2K bytes - Viewed (0) -
src/archive/tar/stat_actime1.go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build aix || linux || dragonfly || openbsd || solaris package tar import ( "syscall" "time" ) func statAtime(st *syscall.Stat_t) time.Time { return time.Unix(st.Atim.Unix()) } func statCtime(st *syscall.Stat_t) time.Time { return time.Unix(st.Ctim.Unix())
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 431 bytes - Viewed (0) -
src/cmd/asm/internal/lex/tokenizer.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package lex import ( "go/build/constraint" "io" "os" "strings" "text/scanner" "unicode" "cmd/asm/internal/flags" "cmd/internal/objabi" "cmd/internal/src" ) // A Tokenizer is a simple wrapping of text/scanner.Scanner, configured
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Aug 04 20:35:21 UTC 2022 - 3K bytes - Viewed (0) -
src/cmd/buildid/doc.go
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /* Buildid displays or updates the build ID stored in a Go package or binary. Usage: go tool buildid [-w] file By default, buildid prints the build ID found in the named file. If the -w option is given, buildid rewrites the build ID found in
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 558 bytes - Viewed (0) -
src/cmd/cgo/ast_go118.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !compiler_bootstrap package main import ( "go/ast" "go/token" ) func (f *File) walkUnexpected(x interface{}, context astContext, visit func(*File, interface{}, astContext)) { switch n := x.(type) { default: error_(token.NoPos, "unexpected type %T in walk", x)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Nov 30 21:45:10 UTC 2022 - 730 bytes - Viewed (0) -
cmd/generic-handlers_test.go
test := test t.Run("", func(t *testing.T) { contains := containsReservedMetadata(test.header) if contains && !test.shouldFail { t.Errorf("contains reserved header but should not fail") } else if !contains && test.shouldFail { t.Errorf("does not contain reserved header but failed") } }) } } var sseTLSHandlerTests = []struct { URL *url.URL Header http.Header
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 29 18:10:04 UTC 2024 - 5.5K bytes - Viewed (0) -
src/bytes/boundary_test.go
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // //go:build linux package bytes_test import ( . "bytes" "syscall" "testing" ) // This file tests the situation where byte operations are checking // data very near to a page boundary. We want to make sure those // operations do not read across the boundary and cause a page
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Nov 30 20:05:58 UTC 2023 - 2.8K bytes - Viewed (0) -
src/cmd/addr2line/addr2line_test.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "bufio" "bytes" "internal/testenv" "os" "path/filepath" "runtime" "strings" "testing" ) // TestMain executes the test binary as the addr2line command if // GO_ADDR2LINETEST_IS_ADDR2LINE is set, and runs the tests otherwise.
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Sep 06 13:23:48 UTC 2024 - 3.2K bytes - Viewed (0) -
src/bytes/export_test.go
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package bytes // Export func for testing
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Apr 24 00:56:36 UTC 2019 - 244 bytes - Viewed (0)