- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,759 for interface (0.09 sec)
-
clause/select_test.go
"testing" "gorm.io/gorm/clause" ) func TestSelect(t *testing.T) { results := []struct { Clauses []clause.Interface Result string Vars []interface{} }{ { []clause.Interface{clause.Select{}, clause.From{}}, "SELECT * FROM `users`", nil, }, { []clause.Interface{clause.Select{ Columns: []clause.Column{clause.PrimaryColumn}, }, clause.From{}},
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Sat Feb 18 01:06:43 UTC 2023 - 1.7K bytes - Viewed (0) -
internal/logger/console.go
var ExitFunc = os.Exit // Logger interface describes the methods that need to be implemented to satisfy the interface requirements. type Logger interface { json(msg string, args ...interface{}) quiet(msg string, args ...interface{}) pretty(msg string, args ...interface{}) } func consoleLog(console Logger, msg string, args ...interface{}) { switch { case jsonFlag:
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jul 12 20:51:54 UTC 2024 - 7.5K bytes - Viewed (0) -
internal/color/color.go
} Bold = func() func(format string, a ...interface{}) string { if IsTerminal() { return color.New(color.Bold).SprintfFunc() } return fmt.Sprintf }() RedBold = func() func(a ...interface{}) string { if IsTerminal() { return color.New(color.FgRed, color.Bold).SprintFunc() } return fmt.Sprint }() RedBoldf = func() func(format string, a ...interface{}) string { if IsTerminal() {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 01 17:57:52 UTC 2024 - 3.8K bytes - Viewed (0) -
architecture/standards/0006-use-of-provider-apis-in-gradle.md
``` interface NestedType { Property<String> getSomeProperty() } class Example { @Nested NestedType getNestedProperty() } ``` Otherwise, if the nested type requires an implementation class, you'll need to manage the lifecycle of it: ``` interface NestedType { Property<String> getSomeProperty() void notManaged() }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Oct 15 20:00:57 UTC 2024 - 10K bytes - Viewed (0) -
src/bytes/reader.go
func (r *Reader) Size() int64 { return int64(len(r.s)) } // Read implements the [io.Reader] interface. func (r *Reader) Read(b []byte) (n int, err error) { if r.i >= int64(len(r.s)) { return 0, io.EOF } r.prevRune = -1 n = copy(b, r.s[r.i:]) r.i += int64(n) return } // ReadAt implements the [io.ReaderAt] interface. func (r *Reader) ReadAt(b []byte, off int64) (n int, err error) {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Jul 16 18:17:37 UTC 2024 - 3.9K bytes - Viewed (0) -
api/go1.22.txt
pkg crypto/x509, type OID struct #60665 pkg database/sql, method (*Null[$0]) Scan(interface{}) error #60370 pkg database/sql, method (Null[$0]) Value() (driver.Value, error) #60370 pkg database/sql, type Null[$0 interface{}] struct #60370 pkg database/sql, type Null[$0 interface{}] struct, V $0 #60370 pkg database/sql, type Null[$0 interface{}] struct, Valid bool #60370 pkg debug/elf, const R_LARCH_64_PCREL = 109 #63725
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Jan 24 20:54:27 UTC 2024 - 7.7K bytes - Viewed (0) -
tests/tracer_test.go
"time" "gorm.io/gorm/logger" ) type Tracer struct { Logger logger.Interface Test func(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error) } func (S Tracer) LogMode(level logger.LogLevel) logger.Interface { return S.Logger.LogMode(level) } func (S Tracer) Info(ctx context.Context, s string, i ...interface{}) { S.Logger.Info(ctx, s, i...) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Oct 18 09:28:06 UTC 2022 - 830 bytes - Viewed (0) -
soft_delete.go
"github.com/jinzhu/now" "gorm.io/gorm/clause" "gorm.io/gorm/schema" ) type DeletedAt sql.NullTime // Scan implements the Scanner interface. func (n *DeletedAt) Scan(value interface{}) error { return (*sql.NullTime)(n).Scan(value) } // Value implements the driver Valuer interface. func (n DeletedAt) Value() (driver.Value, error) { if !n.Valid { return nil, nil } return n.Time, nil }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Feb 01 06:40:55 UTC 2023 - 4.5K bytes - Viewed (1) -
callbacks/helper.go
if len(values.Values) == 0 { values.Values = [][]interface{}{{}} } values.Values[0] = append(values.Values[0], value) } } return } // ConvertSliceOfMapToValuesForCreate convert slice of map to values func ConvertSliceOfMapToValuesForCreate(stmt *gorm.Statement, mapValues []map[string]interface{}) (values clause.Values) { columns := make([]string, 0, len(mapValues))
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Apr 14 12:32:57 UTC 2022 - 3.7K bytes - Viewed (0) -
api/next/66626.txt
pkg go/types, method (*Interface) EmbeddedTypes() iter.Seq[Type] #66626 pkg go/types, method (*Interface) ExplicitMethods() iter.Seq[*Func] #66626 pkg go/types, method (*Interface) Methods() iter.Seq[*Func] #66626 pkg go/types, method (*MethodSet) Methods() iter.Seq[*Selection] #66626 pkg go/types, method (*Named) Methods() iter.Seq[*Func] #66626 pkg go/types, method (*Scope) Children() iter.Seq[*Scope] #66626 pkg go/types, method (*Struct) Fields() iter.Seq[*Var] #66626
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Jul 31 22:54:09 UTC 2024 - 743 bytes - Viewed (0)