- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 892 for Interface (0.18 seconds)
-
logger/slog.go
if l.LogLevel >= Info { l.log(ctx, slog.LevelInfo, msg, slog.Any("data", data)) } } func (l *slogLogger) Warn(ctx context.Context, msg string, data ...interface{}) { if l.LogLevel >= Warn { l.log(ctx, slog.LevelWarn, msg, slog.Any("data", data)) } } func (l *slogLogger) Error(ctx context.Context, msg string, data ...interface{}) { if l.LogLevel >= Error {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Thu Oct 30 10:56:26 GMT 2025 - 2.9K bytes - Click Count (0) -
logger/sql_test.go
SQL string NumericRegexp *regexp.Regexp Vars []interface{} Result string }{ { SQL: "create table users (name, age, height, actived, bytes, create_at, update_at, deleted_at, email, role, pass) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", NumericRegexp: nil, Vars: []interface{}{"jinzhu", 1, 999.99, true, []byte("12345"), tt, &tt, nil, "w@g.\"com", myrole, pwd},
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Thu Mar 21 08:00:02 GMT 2024 - 8.4K bytes - Click Count (0) -
schema/constraint.go
Constraint string // length(phone) >= 10 *Field } func (chk *CheckConstraint) GetName() string { return chk.Name } func (chk *CheckConstraint) Build() (sql string, vars []interface{}) { return "CONSTRAINT ? CHECK (?)", []interface{}{clause.Column{Name: chk.Name}, clause.Expr{SQL: chk.Constraint}} } // ParseCheckConstraints parse schema check constraints func (schema *Schema) ParseCheckConstraints() map[string]CheckConstraint {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Mon Mar 18 07:33:54 GMT 2024 - 1.9K bytes - Click Count (0) -
schema/field.go
field.ValueOf = func(ctx context.Context, v reflect.Value) (interface{}, bool) { v = reflect.Indirect(v) fieldValue := v.Field(fieldIndex) return fieldValue.Interface(), fieldValue.IsZero() } default: field.ValueOf = func(ctx context.Context, v reflect.Value) (interface{}, bool) { v = reflect.Indirect(v) for _, fieldIdx := range field.StructField.Index {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sat Nov 22 03:14:36 GMT 2025 - 32.2K bytes - Click Count (0) -
internal/etag/reader.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package etag import ( "context" "crypto/md5" "fmt" "hash" "io" ) // Tagger is the interface that wraps the basic ETag method. type Tagger interface { ETag() ETag } type wrapReader struct { io.Reader Tagger } var _ Tagger = wrapReader{} // compiler check // ETag returns the ETag of the underlying Tagger.
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Mar 30 00:56:02 GMT 2025 - 4.8K bytes - Click Count (0) -
src/builtin/builtin.go
type rune = int32 // any is an alias for interface{} and is equivalent to interface{} in all ways. type any = interface{} // comparable is an interface that is implemented by all comparable types // (booleans, numbers, strings, pointers, channels, arrays of comparable types, // structs whose fields are all comparable types). // The comparable interface may only be used as a type parameter constraint,Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon Dec 30 23:59:23 GMT 2024 - 12.8K bytes - Click Count (0) -
tests/scanner_valuer_test.go
} if !reflect.DeepEqual([]interface{}{"jinzhu", "POINT(100 100)"}, stmt.Vars) { t.Errorf("generated vars is not equal, got %v", stmt.Vars) } stmt = dryRunDB.Model(UserWithPoint{}).Create(map[string]interface{}{ "Name": "jinzhu", "Point": clause.Expr{SQL: "ST_PointFromText(?)", Vars: []interface{}{"POINT(100 100)"}}, }).Statement
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Wed Jun 07 07:02:07 GMT 2023 - 10.6K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/plugin/PluginDescriptorCache.java
* technical reasons, it is not part of the public API. In particular, this interface can be changed or deleted without * prior notice. * * @since 3.0 */ public interface PluginDescriptorCache { /** * A cache key. */ interface Key { // marker interface for cache keys } @FunctionalInterfaceCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jan 10 07:09:12 GMT 2025 - 2.5K bytes - Click Count (0) -
src/cmd/api/testdata/src/pkg/p2/golden.txt
pkg p2, func F //deprecated pkg p2, func F() string pkg p2, func G() Twoer pkg p2, func NewError(string) error pkg p2, type Twoer interface { PackageTwoMeth } pkg p2, type Twoer interface, PackageTwoMeth //deprecated
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Thu Jul 24 16:04:17 GMT 2025 - 264 bytes - Click Count (0) -
api/maven-api-spi/src/main/java/org/apache/maven/api/spi/PackagingProvider.java
import org.apache.maven.api.di.Named; /** * Service provider interface for registering custom {@link Packaging} implementations. * <p> * This interface allows plugins and extensions to define and register additional packaging types * beyond the standard ones provided by Maven (like jar, war, ear, etc.). Implementations of this * interface will be discovered through the Java ServiceLoader mechanism and their providedCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Apr 03 13:33:59 GMT 2025 - 2K bytes - Click Count (0)