Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for bliver (0.42 sec)

  1. logger/sql_test.go

    package logger_test
    
    import (
    	"database/sql/driver"
    	"encoding/json"
    	"fmt"
    	"regexp"
    	"strings"
    	"testing"
    
    	"github.com/jinzhu/now"
    	"gorm.io/gorm/logger"
    )
    
    type JSON json.RawMessage
    
    func (j JSON) Value() (driver.Value, error) {
    	if len(j) == 0 {
    		return nil, nil
    	}
    	return json.RawMessage(j).MarshalJSON()
    }
    
    type ExampleStruct struct {
    	Name string
    	Val  string
    }
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Mar 21 08:00:02 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. src/cmd/go/internal/work/buildid.go

    	b.toolIDCache[name] = id
    	b.id.Unlock()
    
    	return id
    }
    
    // gccToolID returns the unique ID to use for a tool that is invoked
    // by the GCC driver. This is used particularly for gccgo, but this can also
    // be used for gcc, g++, gfortran, etc.; those tools all use the GCC
    // driver under different names. The approach used here should also
    // work for sufficiently new versions of clang. Unlike toolID, the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:31:25 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssagen/ssa.go

    		return v
    	}
    	v = s.fwdVars[n]
    	if v != nil {
    		return v
    	}
    
    	if s.curBlock == s.f.Entry {
    		// No variable should be live at entry.
    		s.f.Fatalf("value %v (%v) incorrectly live at entry", n, v)
    	}
    	// Make a FwdRef, which records a value that's live on block input.
    	// We'll find the matching definition as part of insertPhis.
    	v = s.newValue0A(ssa.OpFwdRef, t, fwdRefAux{N: n})
    	s.fwdVars[n] = v
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/type.go

    // license that can be found in the LICENSE file.
    
    package syntax
    
    import "go/constant"
    
    // A Type represents a type of Go.
    // All types implement the Type interface.
    // (This type originally lived in types2. We moved it here
    // so we could depend on it from other packages without
    // introducing an import cycle.)
    type Type interface {
    	// Underlying returns the underlying type of a type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. src/cmd/go/internal/cache/default.go

    	defaultOnce.Do(initDefaultCache)
    	return defaultCache
    }
    
    var (
    	defaultOnce  sync.Once
    	defaultCache Cache
    )
    
    // cacheREADME is a message stored in a README in the cache directory.
    // Because the cache lives outside the normal Go trees, we leave the
    // README as a courtesy to explain where it came from.
    const cacheREADME = `This directory holds cached build artifacts from the Go build system.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ppc64/ssa.go

    func ssaMarkMoves(s *ssagen.State, b *ssa.Block) {
    	//	flive := b.FlagsLiveAtEnd
    	//	if b.Control != nil && b.Control.Type.IsFlags() {
    	//		flive = true
    	//	}
    	//	for i := len(b.Values) - 1; i >= 0; i-- {
    	//		v := b.Values[i]
    	//		if flive && (v.Op == v.Op == ssa.OpPPC64MOVDconst) {
    	//			// The "mark" is any non-nil Aux value.
    	//			v.Aux = v
    	//		}
    	//		if v.Type.IsFlags() {
    	//			flive = false
    	//		}
    	//		for _, a := range v.Args {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  7. src/cmd/go/internal/load/pkg.go

    var packageCache = map[string]*Package{}
    
    // dirToImportPath returns the pseudo-import path we use for a package
    // outside the Go path. It begins with _/ and then contains the full path
    // to the directory. If the package lives in c:\home\gopher\my\pkg then
    // the pseudo-import path is _/c_/home/gopher/my/pkg.
    // Using a pseudo-import path like this makes the ./ imports no longer
    // a special case, so that all the code to deal with ordinary imports works
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  8. utils/utils.go

    	yval := reflect.ValueOf(y)
    	if xval.Kind() == reflect.Ptr && xval.IsNil() ||
    		yval.Kind() == reflect.Ptr && yval.IsNil() {
    		return false
    	}
    
    	if valuer, ok := x.(driver.Valuer); ok {
    		x, _ = valuer.Value()
    	}
    	if valuer, ok := y.(driver.Valuer); ok {
    		y, _ = valuer.Value()
    	}
    	return reflect.DeepEqual(x, y)
    }
    
    func ToString(value interface{}) string {
    	switch v := value.(type) {
    	case string:
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 22 06:43:02 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. schema/serializer.go

    	fieldValue      interface{}
    }
    
    // Scan implements sql.Scanner interface
    func (s *serializer) Scan(value interface{}) error {
    	s.value = value
    	return nil
    }
    
    // Value implements driver.Valuer interface
    func (s serializer) Value() (driver.Value, error) {
    	return s.SerializeValuer.Value(s.Context, s.Field, s.Destination, s.fieldValue)
    }
    
    // SerializerInterface serializer interface
    type SerializerInterface interface {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Mar 18 08:28:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  10. scan.go

    package gorm
    
    import (
    	"database/sql"
    	"database/sql/driver"
    	"reflect"
    	"time"
    
    	"gorm.io/gorm/schema"
    	"gorm.io/gorm/utils"
    )
    
    // prepareValues prepare values slice
    func prepareValues(values []interface{}, db *DB, columnTypes []*sql.ColumnType, columns []string) {
    	if db.Statement.Schema != nil {
    		for idx, name := range columns {
    			if field := db.Statement.Schema.LookUpField(name); field != nil {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top