- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,311 for bool (0.02 sec)
-
internal/config/bool-flag.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package config import ( "encoding/json" "fmt" "strconv" "strings" ) // BoolFlag - wrapper bool type. type BoolFlag bool // String - returns string of BoolFlag. func (bf BoolFlag) String() string { if bf { return "on" } return "off" } // MarshalJSON - converts BoolFlag into JSON data.
Registered: 2025-05-25 19:28 - Last Modified: 2022-04-07 15:10 - 2.3K bytes - Viewed (0) -
internal/config/bool-flag_test.go
} } } // Test BoolFlag.UnmarshalJSON() func TestBoolFlagUnmarshalJSON(t *testing.T) { testCases := []struct { data []byte expectedResult BoolFlag expectedErr bool }{ {[]byte(`{}`), BoolFlag(false), true}, {[]byte(`["on"]`), BoolFlag(false), true}, {[]byte(`"junk"`), BoolFlag(false), true}, {[]byte(`""`), BoolFlag(true), false}, {[]byte(`"on"`), BoolFlag(true), false},
Registered: 2025-05-25 19:28 - Last Modified: 2021-06-01 21:59 - 3.5K bytes - Viewed (0) -
cmd/erasure-server-pool-decom.go
CmdLine: pool.endpoints.CmdLine, ID: idx, LastUpdate: UTCNow(), }) } return newMeta } func (z *erasureServerPools) IsDecommissionRunning() bool { z.poolMetaMutex.RLock() defer z.poolMetaMutex.RUnlock() meta := z.poolMeta for _, pool := range meta.Pools { if pool.Decommission != nil && !pool.Decommission.Complete && !pool.Decommission.Failed && !pool.Decommission.Canceled {
Registered: 2025-05-25 19:28 - Last Modified: 2025-04-03 22:07 - 42.2K bytes - Viewed (1) -
internal/s3select/sql/value.go
// conversion succeeded. func (v Value) ToBool() (val bool, ok bool) { val, ok = v.value.(bool) return } // ToTimestamp returns the timestamp value if present. func (v Value) ToTimestamp() (t time.Time, ok bool) { t, ok = v.value.(time.Time) return } // ToBytes returns the value if byte-slice. func (v Value) ToBytes() (val []byte, ok bool) {
Registered: 2025-05-25 19:28 - Last Modified: 2025-02-18 16:25 - 20.3K bytes - Viewed (0) -
api/go1.9.txt
pkg syscall (netbsd-amd64), type Credential struct, NoSetGroups bool pkg syscall (netbsd-arm-cgo), type Credential struct, NoSetGroups bool pkg syscall (netbsd-arm), type Credential struct, NoSetGroups bool pkg syscall (openbsd-386-cgo), type Credential struct, NoSetGroups bool pkg syscall (openbsd-386), type Credential struct, NoSetGroups bool pkg syscall (openbsd-amd64-cgo), type Credential struct, NoSetGroups bool
Registered: 2025-05-27 11:13 - Last Modified: 2021-10-04 20:20 - 10.7K bytes - Viewed (0) -
cmd/xl-storage-errors.go
"syscall" ) // No space left on device error func isSysErrNoSpace(err error) bool { return errors.Is(err, syscall.ENOSPC) } // Invalid argument, unsupported flags such as O_DIRECT func isSysErrInvalidArg(err error) bool { return errors.Is(err, syscall.EINVAL) } // Input/output error func isSysErrIO(err error) bool { return errors.Is(err, syscall.EIO) }
Registered: 2025-05-25 19:28 - Last Modified: 2023-03-06 16:56 - 3.8K bytes - Viewed (0) -
gorm.go
type Session struct { DryRun bool PrepareStmt bool NewDB bool Initialized bool SkipHooks bool SkipDefaultTransaction bool DisableNestedTransaction bool AllowGlobalUpdate bool FullSaveAssociations bool PropagateUnscoped bool QueryFields bool Context context.Context
Registered: 2025-05-25 09:35 - Last Modified: 2025-05-25 07:40 - 12.6K bytes - Viewed (0) -
migrator.go
ColumnType() (columnType string, ok bool) // varchar(64) PrimaryKey() (isPrimaryKey bool, ok bool) AutoIncrement() (isAutoIncrement bool, ok bool) Length() (length int64, ok bool) DecimalSize() (precision int64, scale int64, ok bool) Nullable() (nullable bool, ok bool) Unique() (unique bool, ok bool) ScanType() reflect.Type Comment() (value string, ok bool) DefaultValue() (value string, ok bool) }
Registered: 2025-05-25 09:35 - Last Modified: 2023-10-30 09:15 - 3.1K bytes - Viewed (0) -
tests/helper_test.go
"strconv" "strings" "testing" "time" "gorm.io/gorm" . "gorm.io/gorm/utils/tests" ) type Config struct { Account bool 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{
Registered: 2025-05-25 09:35 - Last Modified: 2024-03-19 03:50 - 8K bytes - Viewed (0) -
cmd/globals.go
cmdline string layout [][]string } type disksLayout struct { legacy bool pools []poolDisksLayout } type serverCtxt struct { JSON, Quiet bool Anonymous bool StrictS3Compat bool Addr, ConsoleAddr string ConfigDir, CertsDir string configDirSet, certsDirSet bool Interface string RootUser, RootPwd string
Registered: 2025-05-25 19:28 - Last Modified: 2024-09-03 18:23 - 16.2K bytes - Viewed (1)