- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 1,644 for Go (0.01 sec)
-
src/cmd/api/testdata/src/pkg/p3/p3.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 p3 type ThirdBase struct{} func (tb *ThirdBase) GoodPlayer() (i, j, k int)Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Wed Nov 09 14:05:53 UTC 2022 - 310 bytes - Viewed (0) -
src/bytes/bytes_js_wasm_test.go
// Copyright 2024 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 js && wasm package bytes_test import ( "bytes" "testing" ) func TestIssue65571(t *testing.T) { b := make([]byte, 1<<31+1) b[1<<31] = 1 i := bytes.IndexByte(b, 1) if i != 1<<31 { t.Errorf("IndexByte(b, 1) = %d; want %d", i, 1<<31) }
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Wed Jul 17 07:00:20 UTC 2024 - 417 bytes - Viewed (0) -
internal/kms/kes.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package kms import ( "context" "errors" "net/http" "sync" "time" "github.com/minio/kms-go/kes" "github.com/minio/madmin-go/v3" ) type kesConn struct { defaultKeyID string client *kes.Client } func (c *kesConn) Version(ctx context.Context) (string, error) { return c.client.Version(ctx) }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Aug 18 06:43:03 UTC 2024 - 7.3K bytes - Viewed (0) -
internal/event/event.go
// // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package event import ( "github.com/minio/madmin-go/v3" ) const ( // NamespaceFormat - namespace log format used in some event targets. NamespaceFormat = "namespace" // AccessFormat - access log format used in some event targets. AccessFormat = "access"
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Jun 20 00:53:08 UTC 2023 - 3.4K bytes - Viewed (0) -
internal/logger/logonce.go
// Returns logOnceType func newLogOnceType() *logOnceType { l := &logOnceType{IDMap: make(map[string]onceErr)} go l.cleanupRoutine() return l } var logOnce = newLogOnceType() // LogOnceIf - Logs notification errors - once per error. // id is a unique identifier for related log messages, refer to cmd/notification.go // on how it is used. func LogOnceIf(ctx context.Context, subsystem string, err error, id string, errKind ...any) {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 3.8K bytes - Viewed (0) -
internal/bucket/lifecycle/filter_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package lifecycle import ( "encoding/xml" "fmt" "testing" "github.com/dustin/go-humanize" ) // TestUnsupportedFilters checks if parsing Filter xml with // unsupported elements returns appropriate errors func TestUnsupportedFilters(t *testing.T) { testCases := []struct { inputXML string
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Feb 27 00:01:20 UTC 2024 - 7.2K bytes - Viewed (0) -
internal/hash/checksum_test.go
// Create dummy data that we'll split into 3 parts dummyData := []byte("The quick brown fox jumps over the lazy dog. " + "Pack my box with five dozen brown eggs. " + "Have another go it will all make sense in the end!") // Split data into 3 parts partSize := len(dummyData) / 3 part1Data := dummyData[0:partSize] part2Data := dummyData[partSize : 2*partSize] part3Data := dummyData[2*partSize:]
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 22 14:15:21 UTC 2025 - 7.1K bytes - Viewed (0) -
internal/store/batch_test.go
Log: func(ctx context.Context, err error, id string, errKind ...any) { t.Log(err) }, }) defer batch.Close() var wg sync.WaitGroup for i := 0; i < int(limit); i++ { wg.Add(1) go func(key int) { defer wg.Done() if err := batch.Add(testItem); err != nil { t.Errorf("failed to add item %v; %v", key, err) return } }(i) } wg.Wait() batchLen := batch.Len()
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 5.6K bytes - Viewed (0) -
cmd/batchjobmetric_string.go
// Code generated by "stringer -type=batchJobMetric -trimprefix=batchJobMetric batch-handlers.go"; DO NOT EDIT. package cmd import "strconv" func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[batchJobMetricReplication-0] _ = x[batchJobMetricKeyRotation-1] _ = x[batchJobMetricExpire-2] }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sat Dec 02 10:51:33 UTC 2023 - 797 bytes - Viewed (0) -
cmd/healingmetric_string.go
// Code generated by "stringer -type=healingMetric -trimprefix=healingMetric erasure-healing.go"; DO NOT EDIT. package cmd import "strconv" func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[healingMetricBucket-0] _ = x[healingMetricObject-1] _ = x[healingMetricCheckAbandonedParts-2] }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Nov 28 18:20:55 UTC 2022 - 789 bytes - Viewed (0)