Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for struct (0.21 sec)

  1. tests/migrate_test.go

    	type UserStat struct {
    		GroundDestroyCount int
    	}
    
    	type GameUser struct {
    		gorm.Model
    		StatAb UserStat `gorm:"embedded;embeddedPrefix:stat_ab_"`
    	}
    
    	type UserStat1 struct {
    		GroundDestroyCount string
    	}
    
    	type GroundRate struct {
    		GroundDestroyCount int
    	}
    
    	type GameUser1 struct {
    		gorm.Model
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  2. src/cmd/cgo/gcc.go

    // cname returns the C name to use for C.s.
    // The expansions are listed in nameToC and also
    // struct_foo becomes "struct foo", and similarly for
    // union and enum.
    func cname(s string) string {
    	if t, ok := nameToC[s]; ok {
    		return t
    	}
    
    	if strings.HasPrefix(s, "struct_") {
    		return "struct " + s[len("struct_"):]
    	}
    	if strings.HasPrefix(s, "union_") {
    		return "union " + s[len("union_"):]
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    // slices before invoking the functions.
    
    var abcd = "abcd"
    var faces = "☺☻☹"
    var commas = "1,2,3,4"
    var dots = "1....2....3....4"
    
    type BinOpTest struct {
    	a string
    	b string
    	i int
    }
    
    func TestEqual(t *testing.T) {
    	// Run the tests and check for allocation at the same time.
    	allocs := testing.AllocsPerRun(10, func() {
    		for _, tt := range compareTests {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  4. cmd/admin-handlers.go

    	disks := strings.Split(r.Form.Get("disks"), ",")
    	byDisk := strings.EqualFold(r.Form.Get("by-disk"), "true")
    	var diskMap map[string]struct{}
    	if len(disks) > 0 && disks[0] != "" {
    		diskMap = make(map[string]struct{}, len(disks))
    		for _, k := range disks {
    			if k != "" {
    				diskMap[k] = struct{}{}
    			}
    		}
    	}
    	jobID := r.Form.Get("by-jobID")
    
    	hosts := strings.Split(r.Form.Get("hosts"), ",")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  5. src/bufio/bufio_test.go

    			t.Fatalf("on line %d/2; ReadLine=%#v, %v; want non-nil line or Error, but not both",
    				i+1, l, err)
    		}
    	}
    }
    
    type readLineResult struct {
    	line     []byte
    	isPrefix bool
    	err      error
    }
    
    var readLineNewlinesTests = []struct {
    	input  string
    	expect []readLineResult
    }{
    	{"012345678901234\r\n012345678901234\r\n", []readLineResult{
    		{[]byte("012345678901234"), true, nil},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  6. tensorflow/c/c_api.h

    // invalidate old TF_Operation* pointers.
    typedef struct TF_Operation TF_Operation;
    
    // Represents a specific input of an operation.
    typedef struct TF_Input {
      TF_Operation* oper;
      int index;  // The index of the input within oper.
    } TF_Input;
    
    // Represents a specific output of an operation.
    typedef struct TF_Output {
      TF_Operation* oper;
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
  7. tests/query_test.go

    	user.UpdatedAt = time.Time{}
    	if err := DB.Where(&user).First(&User{}).Error; err != nil {
    		t.Errorf("search with struct with association should returns no error, but got %v", err)
    	}
    
    	if err := DB.Where(user).First(&User{}).Error; err != nil {
    		t.Errorf("search with struct with association should returns no error, but got %v", err)
    	}
    }
    
    func TestFindInBatches(t *testing.T) {
    	users := []User{
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/filesystem_interface.h

    /// to initialize it as `nullptr`.
    
    typedef struct TF_RandomAccessFile {
      void* plugin_file;
    } TF_RandomAccessFile;
    
    typedef struct TF_WritableFile {
      void* plugin_file;
    } TF_WritableFile;
    
    typedef struct TF_ReadOnlyMemoryRegion {
      void* plugin_memory_region;
    } TF_ReadOnlyMemoryRegion;
    
    typedef struct TF_Filesystem {
      void* plugin_filesystem;
    } TF_Filesystem;
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 17:36:54 GMT 2022
    - 53.1K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool.go

    type HealthOptions struct {
    	Maintenance    bool
    	DeploymentType string
    }
    
    // HealthResult returns the current state of the system, also
    // additionally with any specific heuristic information which
    // was queried
    type HealthResult struct {
    	Healthy       bool
    	HealthyRead   bool
    	HealingDrives int
    	ESHealth      []struct {
    		Maintenance   bool
    		PoolID, SetID int
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 80.1K bytes
    - Viewed (0)
  10. cmd/xl-storage-format-v2.go

    )
    
    func (e ChecksumAlgo) valid() bool {
    	return e > invalidChecksumAlgo && e < lastChecksumAlgo
    }
    
    // xlMetaV2DeleteMarker defines the data struct for the delete marker journal type
    type xlMetaV2DeleteMarker struct {
    	VersionID [16]byte          `json:"ID" msg:"ID"`                               // Version ID for delete marker
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 05:07:37 GMT 2024
    - 63.6K bytes
    - Viewed (1)
Back to top