- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 39 for valfunc (0.16 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/nilfunc/nilfunc.go
"golang.org/x/tools/internal/typeparams" ) //go:embed doc.go var doc string var Analyzer = &analysis.Analyzer{ Name: "nilfunc", Doc: analysisutil.MustExtractDoc(doc, "nilfunc"), URL: "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/nilfunc", Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, } func run(pass *analysis.Pass) (interface{}, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:28:13 UTC 2023 - 2K bytes - Viewed (0) -
src/cmd/vet/testdata/nilfunc/nilfunc.go
// Copyright 2013 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 nilfunc func F() {} func Comparison() { if F == nil { // ERROR "comparison of function F == nil is always false" panic("can't happen") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 20 15:46:42 UTC 2019 - 313 bytes - Viewed (0) -
src/cmd/go/testdata/script/cover_test_pkgselect.txt
} -- bar/bar.go -- package bar import "example/foo" func BarFunc() int { return foo.FooFunc2() } -- bar/bar_test.go -- package bar_test import ( "example/bar" "testing" ) func TestBar(t *testing.T) { if bar.BarFunc() != 42 { t.Fatalf("bad") } } -- baz/baz.go -- package baz func BazFunc() int { return -42
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 28 11:50:58 UTC 2022 - 1.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/fifo_list.go
// otherwise `nil`. type removeFromFIFOFunc func() *request // walkFunc is called for each request in the list in the // oldest -> newest order. // ok: if walkFunc returns false then the iteration stops immediately. // walkFunc may remove the given request from the fifo, // but may not mutate the fifo in any othe way. type walkFunc func(*request) (ok bool) // Internal interface to abstract out the implementation details
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 20 16:05:53 UTC 2021 - 3.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/nilfunc/doc.go
// license that can be found in the LICENSE file. // Package nilfunc defines an Analyzer that checks for useless // comparisons against nil. // // # Analyzer nilfunc // // nilfunc: check for useless comparisons between functions and nil // // A useless comparison is one like f == nil as opposed to f() == nil.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 437 bytes - Viewed (0) -
pkg/volume/volume_linux.go
// - callback walkFunc is invoked on root directory after visiting children dirs and files func walkDeep(root string, walkFunc filepath.WalkFunc) error { info, err := os.Lstat(root) if err != nil { return walkFunc(root, nil, err) } return walk(root, info, walkFunc) } func walk(path string, info os.FileInfo, walkFunc filepath.WalkFunc) error { if !info.IsDir() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 03 19:34:37 UTC 2023 - 6.5K bytes - Viewed (0) -
src/cmd/vet/testdata/copylock/copylock.go
// Copyright 2018 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 copylock import "sync" func BadFunc() { var x *sync.Mutex p := x var y sync.Mutex p = &y *p = *x // ERROR "assignment copies lock value to \*p: sync.Mutex"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jul 26 21:34:18 UTC 2021 - 333 bytes - Viewed (0) -
src/slices/sort_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 19:20:55 UTC 2024 - 9.5K bytes - Viewed (0) -
src/cmd/go/testdata/script/cover_coverpkg_with_init.txt
module M go 1.21 -- a/a.go -- package a import "M/f" func init() { println("package 'a' init: launch the missiles!") } func AFunc() int { return f.Id() } -- a/a_test.go -- package a import "testing" func TestA(t *testing.T) { if AFunc() != 42 { t.Fatalf("bad!") } } -- b/b.go -- package b func init() { println("package 'b' init: release the kraken") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 30 12:33:44 UTC 2023 - 2.4K bytes - Viewed (0) -
testing/internal-performance-testing/src/test/groovy/org/gradle/performance/measure/AmountTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 9.4K bytes - Viewed (0)