Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 112 for James (0.19 sec)

  1. src/cmd/asm/internal/arch/arch.go

    	"fmt"
    	"strings"
    )
    
    // Pseudo-registers whose names are the constant name without the leading R.
    const (
    	RFP = -(iota + 1)
    	RSB
    	RSP
    	RPC
    )
    
    // Arch wraps the link architecture object with more architecture-specific information.
    type Arch struct {
    	*obj.LinkArch
    	// Map of instruction names to enumeration.
    	Instructions map[string]obj.As
    	// Map of register names to enumeration.
    	Register map[string]int16
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Mar 21 06:51:28 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  2. tests/distinct_test.go

    	}
    	users[0].Age = 20
    
    	if err := DB.Create(&users).Error; err != nil {
    		t.Fatalf("errors happened when create users: %v", err)
    	}
    
    	var names []string
    	DB.Table("users").Where("name like ?", "distinct%").Order("name").Pluck("name", &names)
    	AssertEqual(t, names, []string{"distinct", "distinct", "distinct", "distinct-2", "distinct-3"})
    
    	var names1 []string
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  3. internal/s3select/csv/reader.go

    // Reader - CSV record reader for S3Select.
    type Reader struct {
    	args         *ReaderArgs
    	readCloser   io.ReadCloser    // raw input
    	buf          *bufio.Reader    // input to the splitter
    	columnNames  []string         // names of columns
    	nameIndexMap map[string]int64 // name to column index
    	current      [][]string       // current block of results to be returned
    	recordsRead  int              // number of records read in current slice
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  4. tests/scopes_test.go

    }
    
    func NameIn2And3(d *gorm.DB) *gorm.DB {
    	return d.Where("name in (?)", []string{"ScopeUser2", "ScopeUser3"})
    }
    
    func NameIn(names []string) func(d *gorm.DB) *gorm.DB {
    	return func(d *gorm.DB) *gorm.DB {
    		return d.Where("name in (?)", names)
    	}
    }
    
    func TestScopes(t *testing.T) {
    	users := []*User{
    		GetUser("ScopeUser1", Config{}),
    		GetUser("ScopeUser2", Config{}),
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  5. cmd/metacache-entries.go

    		if entry.name != "" {
    			n++
    			if first == nil {
    				first = &m[i]
    			}
    		}
    	}
    	return first, n
    }
    
    // names will return all names in order.
    // Since this allocates it should not be used in critical functions.
    func (m metaCacheEntries) names() []string {
    	res := make([]string, 0, len(m))
    	for _, obj := range m {
    		res = append(res, obj.name)
    	}
    	return res
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  6. lib/time/mkzip.go

    //
    // We use this program instead of 'zip -0 -r ../../zoneinfo.zip *' to get
    // a reproducible generator that does not depend on which version of the
    // external zip tool is used or the ordering of file names in a directory
    // or the current time.
    package main
    
    import (
    	"archive/zip"
    	"bytes"
    	"flag"
    	"fmt"
    	"hash/crc32"
    	"io/fs"
    	"log"
    	"os"
    	"path/filepath"
    	"strings"
    )
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 17:32:07 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  7. cmd/object-api-utils.go

    func isStringEqual(s1 string, s2 string) bool {
    	if runtime.GOOS == globalWindowsOSName {
    		return strings.EqualFold(s1, s2)
    	}
    	return s1 == s2
    }
    
    // Ignores all reserved bucket names or invalid bucket names.
    func isReservedOrInvalidBucket(bucketEntry string, strict bool) bool {
    	if bucketEntry == "" {
    		return true
    	}
    
    	bucketEntry = strings.TrimSuffix(bucketEntry, SlashSeparator)
    	if strict {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  8. src/cmd/cgo/godefs.go

    				override[id.Name] = new
    			}
    		}
    	}
    
    	// Apply overrides.
    	for old, new := range override {
    		if id := goIdent[old]; id != nil {
    			id.Name = new
    		}
    	}
    
    	// Any names still using the _C syntax are not going to compile,
    	// although in general we don't know whether they all made it
    	// into the file, so we can't warn here.
    	//
    	// The most common case is union types, which begin with
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 08 14:33:35 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  9. chainable_api.go

    		tx.Statement.Table = name
    	} else {
    		tx.Statement.TableExpr = nil
    		tx.Statement.Table = ""
    	}
    	return
    }
    
    // Distinct specify distinct fields that you want querying
    //
    //	// Select distinct names of users
    //	db.Distinct("name").Find(&results)
    //	// Select distinct name/age pairs from users
    //	db.Distinct("name", "age").Find(&results)
    func (db *DB) Distinct(args ...interface{}) (tx *DB) {
    	tx = db.getInstance()
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
  10. src/archive/zip/reader.go

    // OpenReader returns the reader with an ErrInsecurePath error.
    // A future version of Go may introduce this behavior by default.
    // Programs that want to accept non-local names can ignore
    // the ErrInsecurePath error and use the returned reader.
    func OpenReader(name string) (*ReadCloser, error) {
    	f, err := os.Open(name)
    	if err != nil {
    		return nil, err
    	}
    	fi, err := f.Stat()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
Back to top