Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 234 for Fields (0.16 sec)

  1. schema/schema.go

    		if fieldStruct := modelType.Field(i); ast.IsExported(fieldStruct.Name) {
    			if field := schema.ParseField(fieldStruct); field.EmbeddedSchema != nil {
    				schema.Fields = append(schema.Fields, field.EmbeddedSchema.Fields...)
    			} else {
    				schema.Fields = append(schema.Fields, field)
    			}
    		}
    	}
    
    	for _, field := range schema.Fields {
    		if field.DBName == "" && field.DataType != "" {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Oct 10 06:50:29 GMT 2023
    - 13.7K bytes
    - Viewed (0)
  2. internal/bucket/bandwidth/monitor_test.go

    	test1ActiveBuckets2[BucketOptions{Name: "bucket", ReplicationARN: "arn"}] = m1MiBPS
    
    	tests := []struct {
    		name   string
    		fields fields
    		want   *BucketBandwidthReport
    		want2  *BucketBandwidthReport
    	}{
    		{
    			name: "ZeroToOne",
    			fields: fields{
    				activeBuckets: test1ActiveBuckets,
    				endTime:       start.Add(1 * time.Second),
    				update2:       oneMiB,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Sep 06 03:21:59 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  3. tests/non_std_test.go

    	}
    
    	animal = Animal{From: "somewhere"}              // No name fields, should be filled with the default value (galeone)
    	DB.Save(&animal).Update("From", "a nice place") // The name field shoul be untouched
    	DB.First(&animal, animal.Counter)
    	if animal.Name != "galeone" {
    		t.Errorf("Name fields shouldn't be changed if untouched, but got %v", animal.Name)
    	}
    
    	// When changing a field with a default value, the change must occur
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  4. src/archive/tar/reader.go

    			// incorrectly believed that the old GNU format had a prefix field.
    			// This is wrong and leads to an output file that mangles the
    			// atime and ctime fields, which are often left unused.
    			//
    			// In order to continue reading tar files created by former, buggy
    			// versions of Go, we skeptically parse the atime and ctime fields.
    			// If we are unable to parse them and the prefix field looks like
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  5. src/archive/zip/writer.go

    	// Officially, the name and comment fields are supposed to be encoded
    	// in CP-437 (which is mostly compatible with ASCII), unless the UTF-8
    	// flag bit is set. However, there are several problems:
    	//
    	//	* Many ZIP readers still do not support UTF-8.
    	//	* If the UTF-8 flag is cleared, several readers simply interpret the
    	//	name and comment fields as whatever the local system encoding is.
    	//
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  6. internal/config/config.go

    	}
    
    	sort.Ints(valueIndexes)
    	fields := make([]string, len(valueIndexes))
    	for i := range valueIndexes {
    		j := i + 1
    		if j < len(valueIndexes) {
    			fields[i] = strings.TrimSpace(input[valueIndexes[i]:valueIndexes[j]])
    		} else {
    			fields[i] = strings.TrimSpace(input[valueIndexes[i]:])
    		}
    	}
    	return fields
    }
    
    // SetKVS - set specific key values per sub-system.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 02 05:11:03 GMT 2024
    - 37.3K bytes
    - Viewed (0)
  7. utils/utils_test.go

    	"math"
    	"strings"
    	"testing"
    	"time"
    )
    
    func TestIsValidDBNameChar(t *testing.T) {
    	for _, db := range []string{"db", "dbName", "db_name", "db1", "1dbname", "db$name"} {
    		if fields := strings.FieldsFunc(db, IsValidDBNameChar); len(fields) != 1 {
    			t.Fatalf("failed to parse db name %v", db)
    		}
    	}
    }
    
    func TestCheckTruth(t *testing.T) {
    	checkTruthTests := []struct {
    		v   string
    		out bool
    	}{
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Feb 19 03:42:25 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  8. src/bufio/scan_test.go

    	" abc\tdef\nghi\rjkl\fmno\vpqr\u0085stu\u00a0\n",
    }
    
    // Test that the word splitter returns the same data as strings.Fields.
    func TestScanWords(t *testing.T) {
    	for n, test := range wordScanTests {
    		buf := strings.NewReader(test)
    		s := NewScanner(buf)
    		s.Split(ScanWords)
    		words := strings.Fields(test)
    		var wordCount int
    		for wordCount = 0; wordCount < len(words); wordCount++ {
    			if !s.Scan() {
    				break
    			}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  9. cmd/data-usage-cache.go

    //msgp:tuple dataUsageEntryV2
    type dataUsageEntryV2 struct {
    	// These fields do no include any children.
    	Size     int64
    	Objects  uint64
    	ObjSizes sizeHistogram
    	Children dataUsageHashMap
    }
    
    //msgp:tuple dataUsageEntryV3
    type dataUsageEntryV3 struct {
    	// These fields do no include any children.
    	Size                   int64
    	ReplicatedSize         uint64
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  10. schema/field.go

    			field.DataType = ""
    			field.IgnoreMigration = true
    		case "migration":
    			field.IgnoreMigration = true
    		}
    	}
    
    	if v, ok := field.TagSettings["->"]; ok {
    		field.Creatable = false
    		field.Updatable = false
    		if strings.ToLower(v) == "false" {
    			field.Readable = false
    		} else {
    			field.Readable = true
    		}
    	}
    
    	if v, ok := field.TagSettings["<-"]; ok {
    		field.Creatable = true
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 32K bytes
    - Viewed (1)
Back to top