- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 151 for provider (0.1 sec)
-
src/unsafe/unsafe.go
// // Running "go vet" can help find uses of Pointer that do not conform to these patterns, // but silence from "go vet" is not a guarantee that the code is valid. // // (1) Conversion of a *T1 to Pointer to *T2. // // Provided that T2 is no larger than T1 and that the two share an equivalent // memory layout, this conversion allows reinterpreting data of one type as // data of another type. An example is the implementation of // math.Float64bits: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 19:45:20 UTC 2024 - 12.1K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/block.go
} // ReplaceControl exchanges the existing control value at the index provided // for the new value. The index must refer to a valid control value. func (b *Block) ReplaceControl(i int, v *Value) { b.Controls[i].Uses-- b.Controls[i] = v v.Uses++ } // CopyControls replaces the controls for this block with those from the // provided block. The provided block is not modified. func (b *Block) CopyControls(from *Block) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 15:44:14 UTC 2024 - 12.2K bytes - Viewed (0) -
src/embed/embed.go
// Copyright 2020 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 embed provides access to files embedded in the running Go program. // // Go source files that import "embed" can use the //go:embed directive // to initialize a variable of type string, []byte, or [FS] with the contents of // files read from the package directory or subdirectories at compile time.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:42:51 UTC 2024 - 13.5K bytes - Viewed (0) -
src/go/types/stmt.go
// they are handled explicitly by funcBody. if !scope.isFunc { check.usage(scope) } } } // stmtContext is a bitset describing which // control-flow statements are permissible, // and provides additional context information // for better error messages. type stmtContext uint const ( // permissible control-flow statements breakOk stmtContext = 1 << iota continueOk fallthroughOk
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.6K bytes - Viewed (0) -
src/go/types/typexpr.go
if isInteger(x.typ) { msg = "invalid array length %s" } else { msg = "array length %s must be integer" } check.errorf(&x, InvalidArrayLen, msg, &x) return -1 } // typeList provides the list of types corresponding to the incoming expression list. // If an error occurred, the result is nil, but all list elements were type-checked. func (check *Checker) typeList(list []ast.Expr) []Type {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 16.3K bytes - Viewed (0) -
src/encoding/json/decode.go
return strconv.ParseFloat(string(n), 64) } // Int64 returns the number as an int64. func (n Number) Int64() (int64, error) { return strconv.ParseInt(string(n), 10, 64) } // An errorContext provides context for type errors during decoding. type errorContext struct { Struct reflect.Type FieldStack []string } // decodeState represents the state while decoding a JSON value. type decodeState struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 35.3K bytes - Viewed (0) -
src/net/http/request_test.go
if q := req.FormValue("q"); q != "foo" { t.Errorf(`req.FormValue("q") = %q, want "foo"`, q) } } // Issue #25192: Test that ParseForm fails but still parses the form when a URL // containing a semicolon is provided. func TestParseFormSemicolonSeparator(t *testing.T) { for _, method := range []string{"POST", "PATCH", "PUT", "GET"} { req, _ := NewRequest(method, "http://www.google.com/search?q=foo;q=bar&a=1", strings.NewReader("q"))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 18:42:34 UTC 2024 - 44K bytes - Viewed (0) -
src/net/http/clientserver_test.go
return } time.Sleep(10 * time.Millisecond) } t.Errorf("%d connections opened, %d closed; want %d to close", open, close, open-1) } // tests that Transport doesn't retain a pointer to the provided request. func TestTransportGCRequest(t *testing.T) { run(t, func(t *testing.T, mode testMode) { t.Run("Body", func(t *testing.T) { testTransportGCRequest(t, mode, true) })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 46.6K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/profile/profile.go
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Package profile provides a representation of profile.proto and // methods to encode/decode profiles in this format. package profile import ( "bytes" "compress/gzip" "fmt" "io" "math" "path/filepath" "regexp"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 22.3K bytes - Viewed (0) -
src/flag/flag_test.go
ResetForTesting(DefaultUsage) var buf strings.Builder CommandLine.SetOutput(&buf) defer func(old []string) { os.Args = old }(os.Args) os.Args = []string{"app", "-i=1", "-unknown"} Parse() const want = "flag provided but not defined: -i\nUsage of app:\n" if got := buf.String(); got != want { t.Errorf("output = %q; want %q", got, want) } } func TestGetters(t *testing.T) { expectedName := "flag set"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:38:24 UTC 2024 - 22K bytes - Viewed (0)