- Sort Score
- Result 10 results
- Languages All
Results 701 - 710 of 1,179 for FUNC (0.03 sec)
-
src/bytes/buffer.go
// b.Len() == len(b.Bytes()). func (b *Buffer) Len() int { return len(b.buf) - b.off } // Cap returns the capacity of the buffer's underlying byte slice, that is, the // total space allocated for the buffer's data. func (b *Buffer) Cap() int { return cap(b.buf) } // Available returns how many bytes are unused in the buffer. func (b *Buffer) Available() int { return cap(b.buf) - len(b.buf) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Oct 29 16:47:05 UTC 2024 - 15.7K bytes - Viewed (0) -
internal/bucket/lifecycle/rule.go
if r.Status != Enabled && r.Status != Disabled { return errInvalidRuleStatus } return nil } func (r Rule) validateExpiration() error { return r.Expiration.Validate() } func (r Rule) validateNoncurrentExpiration() error { return r.NoncurrentVersionExpiration.Validate() } func (r Rule) validatePrefixAndFilter() error { if !r.Prefix.set && r.Filter.IsEmpty() || r.Prefix.set && !r.Filter.IsEmpty() {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 01 01:11:10 UTC 2024 - 5.5K bytes - Viewed (0) -
src/arena/arena.go
func Clone[T any](s T) T { return runtime_arena_heapify(s).(T) } //go:linkname reflect_arena_New reflect.arena_New func reflect_arena_New(a *Arena, typ any) any { return runtime_arena_arena_New(a.a, typ) } //go:linkname runtime_arena_newArena func runtime_arena_newArena() unsafe.Pointer //go:linkname runtime_arena_arena_New
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Oct 12 20:23:36 UTC 2022 - 4.3K bytes - Viewed (0) -
clause/expression_test.go
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Aug 10 05:34:33 UTC 2023 - 8.4K bytes - Viewed (0) -
tests/associations_has_one_test.go
package tests_test import ( "testing" . "gorm.io/gorm/utils/tests" ) func TestHasOneAssociation(t *testing.T) { user := *GetUser("hasone", Config{Account: true}) if err := DB.Create(&user).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } CheckUser(t, user, user) // Find var user2 User DB.Find(&user2, "id = ?", user.ID) DB.Model(&user2).Association("Account").Find(&user2.Account)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jun 12 10:49:45 UTC 2024 - 7.1K bytes - Viewed (0) -
cmd/metacache-set.go
// or the context is canceled. func (o *listPathOptions) gatherResults(ctx context.Context, in <-chan metaCacheEntry) func() (metaCacheEntriesSorted, error) { resultsDone := make(chan metaCacheEntriesSorted) // Copy so we can mutate resCh := resultsDone var done bool var mu sync.Mutex resErr := io.EOF go func() { var results metaCacheEntriesSorted var returned bool
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jul 12 16:23:16 UTC 2024 - 30.7K bytes - Viewed (0) -
internal/event/target/postgresql_test.go
// TestPostgreSQLRegistration checks if postgres driver // is registered and fails otherwise. func TestPostgreSQLRegistration(t *testing.T) { var found bool for _, drv := range sql.Drivers() { if drv == "postgres" { found = true break } } if !found { t.Fatal("postgres driver not registered") } } func TestPsqlTableNameValidation(t *testing.T) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Apr 24 17:51:07 UTC 2024 - 1.7K bytes - Viewed (0) -
internal/amztime/parse_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. // Package amztime implements AWS specific time parsing and deviations package amztime import ( "errors" "testing" "time" ) func TestParse(t *testing.T) { type testCase struct { expectedErr error expectedTime time.Time timeStr string } testCases := []testCase{ { ErrMalformedDate, time.Time{},
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Sep 07 14:24:54 UTC 2022 - 1.6K bytes - Viewed (0) -
cmd/net.go
func mustSplitHostPort(hostPort string) (host, port string) { xh, err := xnet.ParseHost(hostPort) if err != nil { logger.FatalIf(err, "Unable to split host port %s", hostPort) } return xh.Name, xh.Port.String() } // mustGetLocalIPs returns IPs of local interface func mustGetLocalIPs() (ipList []net.IP) { ifs, err := net.Interfaces()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jun 19 14:34:00 UTC 2024 - 9.6K bytes - Viewed (0) -
internal/event/target/amqp.go
func (target *AMQPTarget) IsActive() (bool, error) { if err := target.init(); err != nil { return false, err } return target.isActive() } func (target *AMQPTarget) isActive() (bool, error) { ch, _, err := target.channel() if err != nil { return false, err } defer func() { ch.Close() }() return true, nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 10K bytes - Viewed (0)