Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 209 for isSlice (0.07 sec)

  1. tests/associations_many2many_test.go

    	languages2_1 := []*Language{
    		{Code: "language-slice-replace-1-1", Name: "language-slice-replace-1-1"},
    		{Code: "language-slice-replace-1-2", Name: "language-slice-replace-1-2"},
    	}
    	languages2_2 := []*Language{
    		{Code: "language-slice-replace-2-1", Name: "language-slice-replace-2-1"},
    		{Code: "language-slice-replace-2-2", Name: "language-slice-replace-2-2"},
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Jun 10 13:05:19 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  2. cmd/os-readdir_test.go

    	sort.Strings(entries)
    
    	// Add entries slice for this test directory.
    	testResults = append(testResults, result{dir, entries})
    	return testResults
    }
    
    // checkResult - checks whether entries are got are same as expected entries.
    func checkResult(expected []string, got []string) bool {
    	// If length of expected and got slice are different, the test actually failed.
    	if len(expected) != len(got) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  3. doc/go_spec.html

    The <i>capacity</i> is a measure of that extent: it is the sum of
    the length of the slice and the length of the array beyond the slice;
    a slice of length up to that capacity can be created by
    <a href="#Slice_expressions"><i>slicing</i></a> a new one from the original slice.
    The capacity of a slice <code>a</code> can be discovered using the
    built-in function <a href="#Length_and_capacity"><code>cap(a)</code></a>.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 00:58:01 UTC 2024
    - 282.5K bytes
    - Viewed (0)
  4. tests/joins_test.go

    	}
    
    	CheckUser(t, user2, user)
    }
    
    func TestJoinsForSlice(t *testing.T) {
    	users := []User{
    		*GetUser("slice-joins-1", Config{Company: true, Manager: true, Account: true}),
    		*GetUser("slice-joins-2", Config{Company: true, Manager: true, Account: true}),
    		*GetUser("slice-joins-3", Config{Company: true, Manager: true, Account: true}),
    	}
    
    	DB.Create(&users)
    
    	var userIDs []uint
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 17 03:58:13 UTC 2024
    - 15K bytes
    - Viewed (0)
  5. doc/next/6-stdlib/99-minor/encoding/62384.md

    introduced to append the textual or binary representation of an object
    to a byte slice. These interfaces provide the same functionality as
    [TextMarshaler] and [BinaryMarshaler], but instead of allocating a new slice
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Jul 30 14:22:50 UTC 2024
    - 346 bytes
    - Viewed (0)
  6. utils/utils_test.go

    			input:    []int{1, 2, 3, 4, 5},
    			trimLen:  2,
    			expected: []int{1, 2, 3},
    		},
    		{
    			name:     "Trim entire slice",
    			input:    []int{1, 2, 3},
    			trimLen:  3,
    			expected: []int{},
    		},
    		{
    			name:     "Trim length greater than slice length",
    			input:    []int{1, 2, 3},
    			trimLen:  5,
    			expected: []int{},
    		},
    		{
    			name:     "Zero trim length",
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Aug 22 11:03:42 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. callbacks/helper.go

    			if len(values.Values) == 0 {
    				values.Values = [][]interface{}{{}}
    			}
    
    			values.Values[0] = append(values.Values[0], value)
    		}
    	}
    	return
    }
    
    // ConvertSliceOfMapToValuesForCreate convert slice of map to values
    func ConvertSliceOfMapToValuesForCreate(stmt *gorm.Statement, mapValues []map[string]interface{}) (values clause.Values) {
    	columns := make([]string, 0, len(mapValues))
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Apr 14 12:32:57 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  8. src/main/webapp/js/admin/plugins/form-validator/sepa.js

    ="Z".charCodeAt(0)?b-"A".charCodeAt(0)+10:a}).join("");for(var b,c=a;c.length>2;)b=c.slice(0,9),c=(parseInt(b,10)%97).toString()+c.slice(b.length);return parseInt(c,10)%97===1},d=function(a){a=a.toUpperCase(),a=a.replace(/\s+/g,"");var c=a.slice(0,2),d=0,e="";for(d=0;d<b.length;++d)if(b[d][0]===c){e=b[d][2];break}if(""===e)return!1;var f=e.match(/(.{3})/g).map(function(a){var b,c=a.slice(0,1),d=parseInt(a.slice(1),10);switch(c){case"A":b="0-9A-Za-z";break;case"B":b="0-9A-Z";break;case"C":b="A-Za...
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jan 01 05:12:47 UTC 2018
    - 3.4K bytes
    - Viewed (0)
  9. scan.go

    		}
    
    		switch reflectValue.Kind() {
    		case reflect.Slice, reflect.Array:
    			var (
    				elem        reflect.Value
    				isArrayKind = reflectValue.Kind() == reflect.Array
    			)
    
    			if !update || reflectValue.Len() == 0 {
    				update = false
    				if isArrayKind {
    					db.Statement.ReflectValue.Set(reflect.Zero(reflectValue.Type()))
    				} else {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/ByteSource.java

      }
    
      /**
       * Returns a view of a slice of this byte source that is at most {@code length} bytes long
       * starting at the given {@code offset}. If {@code offset} is greater than the size of this
       * source, the returned source will be empty. If {@code offset + length} is greater than the size
       * of this source, the returned source will contain the slice starting at {@code offset} and
       * ending at the end of this source.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 26.2K bytes
    - Viewed (0)
Back to top