- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 139 for genMetrics (0.16 sec)
-
pkg/collateral/control.go
for _, n := range names { if commands[n].Name() == help { continue } g.genCommand(commands[n]) _ = g.genConfigFile(commands[n].Flags()) } g.genVars(cmd, p.SelectEnv) g.genMetrics(p.SelectMetric) f, err := os.Create(path) if err != nil { return err } _, err = g.buffer.WriteTo(f) _ = f.Close() return err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jan 10 03:51:36 UTC 2024 - 17.8K bytes - Viewed (0) -
src/go/doc/testdata/generics.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. // Package generics contains the new syntax supporting generic programming in // Go. package generics // Variables with an instantiated type should be shown. var X Type[int] // Parameterized types should be shown. type Type[P any] struct { Field P }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 10 18:06:32 UTC 2021 - 2.1K bytes - Viewed (0) -
src/go/internal/gcimporter/testdata/generics.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file is used to generate an object file which // serves as test file for gcimporter_test.go. package generics type Any any var x any type T[A, B any] struct { Left A Right B } var X T[int, string] = T[int, string]{1, "hi"} func ToInt[P interface{ ~int }](p P) int { return int(p) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 01 19:00:50 UTC 2021 - 572 bytes - Viewed (0) -
src/go/printer/testdata/generics.input
// 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 generics func _[A, B any](a A, b B) int {} func _[T any](x, y T) T type T[P any] struct{} type T[P1, P2, P3 any] struct{} type T[P C] struct{} type T[P1, P2, P3 C] struct{} type T[P C[P]] struct{} type T[P1, P2, P3 C[P1, P2, P3]] struct{} func f[P any](x P)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 06 16:18:34 UTC 2022 - 2.6K bytes - Viewed (0) -
src/go/doc/testdata/generics.0.golden
// Package generics contains the new syntax supporting generic ... PACKAGE generics IMPORTPATH testdata/generics FILENAMES testdata/generics.go FUNCTIONS // AnotherFunc has an implicit constraint interface. Neither type ... func AnotherFunc[T ~struct{ f int }](_ struct{ f int }) // Func has an instantiated constraint. func Func[T Constraint[string, Type[int]]]() // Single is not a factory function.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 10 18:06:32 UTC 2021 - 1.8K bytes - Viewed (0) -
src/go/doc/testdata/generics.2.golden
// Package generics contains the new syntax supporting generic ... PACKAGE generics IMPORTPATH testdata/generics FILENAMES testdata/generics.go FUNCTIONS // AnotherFunc has an implicit constraint interface. Neither type ... func AnotherFunc[T ~struct{ f int }](_ struct{ f int }) // Func has an instantiated constraint. func Func[T Constraint[string, Type[int]]]() // Single is not a factory function.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 10 18:06:32 UTC 2021 - 1.8K bytes - Viewed (0) -
src/go/doc/testdata/generics.1.golden
// Package generics contains the new syntax supporting generic ... PACKAGE generics IMPORTPATH testdata/generics FILENAMES testdata/generics.go FUNCTIONS // AnotherFunc has an implicit constraint interface. Neither type ... func AnotherFunc[T ~struct{ f int }](_ struct{ f int }) // Func has an instantiated constraint. func Func[T Constraint[string, Type[int]]]() // Single is not a factory function.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 10 18:06:32 UTC 2021 - 1.6K bytes - Viewed (0) -
src/go/printer/testdata/generics.golden
// 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 generics func _[A, B any](a A, b B) int {} func _[T any](x, y T) T type T[P any] struct{} type T[P1, P2, P3 any] struct{} type T[P C] struct{} type T[P1, P2, P3 C] struct{} type T[P C[P]] struct{} type T[P1, P2, P3 C[P1, P2, P3]] struct{} func f[P any](x P)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 06 16:18:34 UTC 2022 - 2.6K bytes - Viewed (0) -
pkg/volume/metrics_du_test.go
} actual, err = metrics.GetMetrics() if err != nil { t.Errorf("Unexpected error when calling GetMetrics %v", err) } if e, a := previousInodes, actual.InodesUsed.Value(); e != a { t.Errorf("Unexpected Used for directory with file. Expected %v, got %d.", e, a) } } // TestMetricsDuRequireInit tests that if MetricsDu is not initialized with a path, GetMetrics // returns an error
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 20 14:49:03 UTC 2023 - 3.9K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_sum_issue56222.txt
go mod download -json example.com/generics stdout '"GoModSum":' go list -f '{{if eq .ImportPath "example.com/generics"}}{{.Module.GoVersion}}{{end}}' -deps -test example.com/m2/q stdout 1.18 # At go 1.20 or earlier, 'go mod tidy' should preserve the historical go.sum
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 12 13:58:58 UTC 2023 - 2.8K bytes - Viewed (0)