- Sort Score
- Result 10 results
- Languages All
Results 331 - 340 of 1,209 for strncat (0.04 sec)
-
doc/next/6-stdlib/99-minor/encoding/json/45669.md
When marshaling, a struct field with the new `omitzero` option in the struct field tag will be omitted if its value is zero. If the field type has an `IsZero() bool` method, that will be used to determine whether the value is zero. Otherwise, the value is zero if it is [the zero value for its type](/ref/spec#The_zero_value). If both `omitempty` and `omitzero` are specified, the field will be omitted if the
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Oct 02 14:22:27 UTC 2024 - 452 bytes - Viewed (0) -
tests/gorm_test.go
switch dialect { case "mysql", "sqlserver": // these dialects do not support the "returning" clause return default: // This user struct will leverage the existing users table, but override // the Name field to default to null. type user struct { gorm.Model Name string `gorm:"default:null"` } u1 := user{} if results := DB.Create(&u1); results.Error != nil {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jun 01 07:22:21 UTC 2023 - 3.3K bytes - Viewed (0) -
internal/store/store_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package store import ( "testing" ) func TestKeyString(t *testing.T) { testCases := []struct { key Key expectedString string }{ { key: Key{ Name: "01894394-d046-4783-ba0d-f1c6885790dc", Extension: ".event", },
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 4K bytes - Viewed (0) -
istioctl/pkg/writer/compare/comparator.go
"google.golang.org/protobuf/types/known/emptypb" "istio.io/istio/istioctl/pkg/util/configdump" ) // Comparator diffs between a config dump from Istiod and one from Envoy type Comparator struct { envoy, istiod *configdump.Wrapper w io.Writer context int location string } // NewComparator is a comparator constructor
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 3.7K bytes - Viewed (0) -
callbacks/create.go
if reflect.Indirect(rv).Kind() != reflect.Struct { break } if _, isZero := pkField.ValueOf(db.Statement.Context, rv); isZero { db.AddError(pkField.Set(db.Statement.Context, rv, insertID)) insertID += pkField.AutoIncrementIncrement } } } case reflect.Struct: _, isZero := pkField.ValueOf(db.Statement.Context, db.Statement.ReflectValue)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Apr 08 03:29:55 UTC 2024 - 12.5K bytes - Viewed (0) -
cni/pkg/repair/repaircontroller.go
if state.Reason == "Completed" || state.ExitCode == 0 { continue } } // Check the LastTerminationState struct for information about why the container // last exited. If a pod is using the CNI configuration check init container, // it will start crashlooping and populate this struct. if state := container.LastTerminationState.Terminated; state != nil { // Verify the container state matches our filter criteria
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Feb 10 00:31:55 UTC 2024 - 10.4K bytes - Viewed (0) -
istioctl/pkg/writer/compare/sds/writer_test.go
// limitations under the License. package sdscompare import ( "bytes" "strings" "testing" ) func TestSDSWriterSecretItems(t *testing.T) { tests := []struct { name string format Format items []SecretItem expected []string unexpected []string }{ { name: "test tabular output with no secret items is equivalent to the header",
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri May 29 20:42:01 UTC 2020 - 4.9K bytes - Viewed (0) -
clause/delete_test.go
package clause_test import ( "fmt" "testing" "gorm.io/gorm/clause" ) func TestDelete(t *testing.T) { results := []struct { Clauses []clause.Interface Result string Vars []interface{} }{ { []clause.Interface{clause.Delete{}, clause.From{}}, "DELETE FROM `users`", nil, }, { []clause.Interface{clause.Delete{Modifier: "LOW_PRIORITY"}, clause.From{}},
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Jun 02 01:18:01 UTC 2020 - 608 bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/UrlComponentEncodingTesterJvm.kt
* strict than the others. */ fun escapeForUri(vararg codePoints: Int) = apply { uriEscapedCodePoints.append(String(*codePoints)) } /** * Configure code points to be stripped in conversion to `java.net.URI`. That class is more * strict than the others. */ fun stripForUri(vararg codePoints: Int) = apply {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.5K bytes - Viewed (0) -
cmd/xl-storage_unix_test.go
mask := syscall.Umask(0) syscall.Umask(mask) return mask } // Tests if the directory and file creations happen with proper umask. func TestIsValidUmaskVol(t *testing.T) { tmpPath := t.TempDir() testCases := []struct { volName string expectedUmask int }{ {"is-this-valid", getUmask()}, } testCase := testCases[0] // Initialize a new xlStorage layer. disk, err := newLocalXLStorage(tmpPath)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 25 19:37:26 UTC 2022 - 3.4K bytes - Viewed (0)