- Sort Score
- Result 10 results
- Languages All
Results 501 - 510 of 1,596 for var0 (0.02 sec)
-
tests/group_by_test.go
}, { Name: "groupby1", Age: 330, Birthday: Now(), Active: true, }} if err := DB.Create(&users).Error; err != nil { t.Errorf("errors happened when create: %v", err) } var name string var total int if err := DB.Model(&User{}).Select("name, sum(age)").Where("name = ?", "groupby").Group("name").Row().Scan(&name, &total); err != nil { t.Errorf("no error should happen, but got %v", err) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 3.3K bytes - Viewed (0) -
internal/disk/type_windows.go
var GetVolumeInformation = kernel32.NewProc("GetVolumeInformationW") // getFSType returns the filesystem type of the underlying mounted filesystem func getFSType(path string) string { volumeNameSize, nFileSystemNameSize := uint32(260), uint32(260) var lpVolumeSerialNumber uint32 var lpFileSystemFlags, lpMaximumComponentLength uint32 var lpFileSystemNameBuffer, volumeName [260]uint16
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 2.2K bytes - Viewed (0) -
cmd/xl-storage-meta-inline.go
keys := make([][]byte, 0, sz+1) vals := make([][]byte, 0, sz+1) // Version plus header... plSize := 1 + msgp.MapHeaderSize replaced := false for i := uint32(0); i < sz; i++ { var found, foundVal []byte var err error found, buf, err = msgp.ReadMapKeyZC(buf) if err != nil { break } foundVal, buf, err = msgp.ReadBytesZC(buf) if err != nil { break }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Apr 04 12:04:40 UTC 2024 - 9.5K bytes - Viewed (0) -
internal/lock/lock_windows.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package lock import ( "fmt" "os" "path/filepath" "syscall" "unsafe" "golang.org/x/sys/windows" ) var ( modkernel32 = windows.NewLazySystemDLL("kernel32.dll") procLockFileEx = modkernel32.NewProc("LockFileEx") ) const ( // https://msdn.microsoft.com/en-us/library/windows/desktop/aa365203(v=vs.85).aspx
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Oct 18 18:08:15 UTC 2023 - 7.9K bytes - Viewed (0) -
tests/helper_test.go
Pets int Toys int Company bool Manager bool Team int Languages int Friends int NamedPet bool Tools int } func GetUser(name string, config Config) *User { var ( birthday = time.Now().Round(time.Second) user = User{ Name: name, Age: 18, Birthday: &birthday, } ) if config.Account { user.Account = Account{Number: name + "_account"}
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Mar 19 03:50:28 UTC 2024 - 8K bytes - Viewed (0) -
cmd/object-api-interface_gen.go
o = msgp.AppendBool(o, z.NoMetadata) return } // UnmarshalMsg implements msgp.Unmarshaler func (z *BucketOptions) UnmarshalMsg(bts []byte) (o []byte, err error) { var field []byte _ = field var zb0001 uint32 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) if err != nil { err = msgp.WrapError(err) return } for zb0001 > 0 { zb0001-- field, bts, err = msgp.ReadMapKeyZC(bts)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 22 21:57:20 UTC 2024 - 8.7K bytes - Viewed (0) -
istioctl/pkg/ztunnelconfig/ztunnelconfig.go
}), ValidArgsFunction: completion.ValidPodsNameArgs(ctx), } common.attach(cmd) return cmd } func workloadConfigCmd(ctx cli.Context) *cobra.Command { var workloadsNamespace string var workloadNode string var address string common := new(commonFlags) cmd := &cobra.Command{ Use: "workload [<type>/]<name>[.<namespace>]",
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 19:17:45 UTC 2024 - 22.2K bytes - Viewed (0) -
cmd/scannermetric_string.go
package cmd import "strconv" func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[scannerMetricReadMetadata-0] _ = x[scannerMetricCheckMissing-1] _ = x[scannerMetricSaveUsage-2] _ = x[scannerMetricApplyAll-3] _ = x[scannerMetricApplyVersion-4] _ = x[scannerMetricTierObjSweep-5]
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 25 05:15:31 UTC 2023 - 1.7K bytes - Viewed (0) -
docs/sts/ldap.go
flag.PrintDefaults() return } // The credentials package in minio-go provides an interface to call the // LDAP STS API. // Initialize LDAP credentials var ldapOpts []cr.LDAPIdentityOpt if sessionPolicyFile != "" { var policy string if f, err := os.Open(sessionPolicyFile); err != nil { log.Fatalf("Unable to open session policy file %s: %v", sessionPolicyFile, err) } else { bs, err := io.ReadAll(f)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 07 12:59:47 UTC 2024 - 4K bytes - Viewed (0) -
src/archive/tar/example_test.go
package tar_test import ( "archive/tar" "bytes" "fmt" "io" "log" "os" ) func Example_minimal() { // Create and add some files to the archive. var buf bytes.Buffer tw := tar.NewWriter(&buf) var files = []struct { Name, Body string }{ {"readme.txt", "This archive contains some text files."}, {"gopher.txt", "Gopher names:\nGeorge\nGeoffrey\nGonzo"},
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Nov 16 16:54:08 UTC 2017 - 1.4K bytes - Viewed (0)