- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 119 for scanf (0.34 sec)
-
tests/serializer_test.go
} return s } type Roles []string type Job struct { Title string Number int Location string IsIntern bool } type EncryptedString string func (es *EncryptedString) Scan(ctx context.Context, field *schema.Field, dst reflect.Value, dbValue interface{}) (err error) { switch value := dbValue.(type) { case []byte: *es = EncryptedString(bytes.TrimPrefix(value, []byte("hello"))) case string:
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Fri Apr 21 14:09:38 GMT 2023 - 7.6K bytes - Viewed (0) -
migrator/migrator.go
} // GetTables returns tables func (m Migrator) GetTables() (tableList []string, err error) { err = m.DB.Raw("SELECT TABLE_NAME FROM information_schema.tables where TABLE_SCHEMA=?", m.CurrentDatabase()). Scan(&tableList).Error return } // CreateTable create table in database for values func (m Migrator) CreateTable(values ...interface{}) error { for _, value := range m.ReorderModels(values, false) {
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Fri Apr 26 07:15:49 GMT 2024 - 29K bytes - Viewed (0) -
build-logic/buildquality/src/main/kotlin/gradlebuild.arch-test.gradle.kts
extensions.findByType<DevelocityTestConfiguration>()?.apply { // PTS doesn't work well with architecture tests which scan all classes predictiveTestSelection.enabled = false } } } } } } }
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Wed Apr 03 13:29:44 GMT 2024 - 3K bytes - Viewed (0) -
cmd/data-scanner.go
if i.debug { if versionID != "" { console.Debugf(applyActionsLogPrefix+" lifecycle: %q (version-id=%s), Initial scan: %v\n", i.objectPath(), versionID, lcEvt.Action) } else { console.Debugf(applyActionsLogPrefix+" lifecycle: %q Initial scan: %v\n", i.objectPath(), lcEvt.Action) } } switch lcEvt.Action {
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Mon Apr 22 17:49:30 GMT 2024 - 47.4K bytes - Viewed (0) -
schema/interfaces.go
GetName() string Build() (sql string, vars []interface{}) } // GormDataTypeInterface gorm data type interface type GormDataTypeInterface interface { GormDataType() string } // FieldNewValuePool field new scan value pool type FieldNewValuePool interface { Get() interface{} Put(interface{}) } // CreateClausesInterface create clauses interface type CreateClausesInterface interface {
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Sun Feb 04 07:49:19 GMT 2024 - 980 bytes - Viewed (0) -
tests/query_test.go
t.Fatalf("failed to query struct data with null age, got error %v", err) } AssertEqual(t, result, user) users := []User{ *GetUser("scan_null_value_for_slice_1", Config{}), *GetUser("scan_null_value_for_slice_2", Config{}), *GetUser("scan_null_value_for_slice_3", Config{}), } DB.Create(&users) if err := DB.Model(&users[0]).Update("age", nil).Error; err != nil {
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Thu Apr 25 12:22:53 GMT 2024 - 49.8K bytes - Viewed (0) -
cmd/data-scanner-metric.go
scannerMetricHealAbandonedVersion // START Trace metrics: scannerMetricStartTrace scannerMetricScanObject // Scan object. All operations included. scannerMetricHealAbandonedObject // END realtime metrics: scannerMetricLastRealtime // Trace only metrics: scannerMetricScanFolder // Scan a folder on disk, recursively. scannerMetricScanCycle // Full cycle, cluster global
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Mon Sep 25 05:15:31 GMT 2023 - 9.1K bytes - Viewed (0) -
internal/disk/directio_unsupported.go
// reasons. Note that ZFS is effectively the default filesystem on illumos // systems. // // One benefit of using DirectIO on Linux is that the page cache will not be // polluted with single-access data. The ZFS read cache (ARC) is scan-resistant // so there is no risk of polluting the entire cache with data accessed once. // Another goal of DirectIO is to minimize the mutation of data by the kernel
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Wed Oct 18 18:08:15 GMT 2023 - 2.6K bytes - Viewed (0) -
tests/embedded_struct_test.go
b, err := json.Marshal(c) return string(b[:]), err } func (c *Content) Scan(src interface{}) error { var value Content str, ok := src.(string) if !ok { byt, ok := src.([]byte) if !ok { return errors.New("Embedded.Scan byte assertion failed") } if err := json.Unmarshal(byt, &value); err != nil { return err } } else {
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Thu Oct 26 03:58:13 GMT 2023 - 7.3K bytes - Viewed (0) -
src/cmd/addr2line/main.go
defer f.Close() tab, err := f.PCLineTable() if err != nil { log.Fatalf("reading %s: %v", flag.Arg(0), err) } stdin := bufio.NewScanner(os.Stdin) stdout := bufio.NewWriter(os.Stdout) for stdin.Scan() { p := stdin.Text() if strings.Contains(p, ":") { // Reverse translate file:line to pc. // This was an extension in the old C version of 'go tool addr2line'
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Apr 11 16:34:30 GMT 2022 - 2.3K bytes - Viewed (0)