- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 240 for Flag (0.04 sec)
-
internal/config/bool-flag_test.go
} for _, testCase := range testCases { var flag BoolFlag err := (&flag).UnmarshalJSON(testCase.data) if !testCase.expectedErr && err != nil { t.Fatalf("error: expected = <nil>, got = %v", err) } if testCase.expectedErr && err == nil { t.Fatalf("error: expected error, got = <nil>") } if err == nil && testCase.expectedResult != flag {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 3.5K bytes - Viewed (0) -
docs/debugging/s3-verify/main.go
flag.StringVar(&targetEndpoint, "target-endpoint", "https://play.min.io", "S3 endpoint URL") flag.StringVar(&targetAccessKey, "target-access-key", "Q3AM3UQ867SPQQA43P2F", "S3 Access Key") flag.StringVar(&targetSecretKey, "target-secret-key", "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG", "S3 Secret Key") flag.StringVar(&targetBucket, "target-bucket", "", "Select a specific bucket")
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jun 22 15:12:47 UTC 2022 - 8.4K bytes - Viewed (0) -
docs/debugging/hash-set/main.go
) func main() { flag.StringVar(&file, "file", "", "Read all objects from file, newline separated") flag.StringVar(&prefix, "prefix", "", "Add prefix to all objects") flag.StringVar(&object, "object", "", "Select an object") flag.StringVar(&deploymentID, "deployment-id", "", "MinIO deployment ID, obtained from 'format.json'") flag.IntVar(&setCount, "set-count", 0, "Total set count")
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 3.7K bytes - Viewed (0) -
lib/time/mkzip.go
package main import ( "archive/zip" "bytes" "flag" "fmt" "hash/crc32" "io/fs" "log" "os" "path/filepath" "strings" ) func usage() { fmt.Fprintf(os.Stderr, "usage: go run mkzip.go zoneinfo.zip\n") os.Exit(2) } func main() { log.SetPrefix("mkzip: ") log.SetFlags(0) flag.Usage = usage flag.Parse() args := flag.Args()
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Mar 04 17:32:07 UTC 2024 - 2.1K bytes - Viewed (0) -
docs/debugging/pprofgoparser/main.go
` func main() { flag.Parse() if len(flag.Args()) == 0 { log.Fatal(helpUsage) } var err error goroutinesRE = regexp.MustCompile(`^goroutine [0-9]+ \[[^,]+(, ([0-9]+) minutes)?\]:$`) if searchText != "" { searchRE, err = regexp.Compile(searchText) if err != nil { log.Fatal(err) } } for _, arg := range flag.Args() {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Mar 06 11:43:16 UTC 2024 - 3.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/DcerpcMessage.java
protected int call_id = 0; protected int alloc_hint = 0; protected int result = 0; public boolean isFlagSet(int flag) { return (flags & flag) == flag; } public void unsetFlag(int flag) { flags &= ~flag; } public void setFlag(int flag) { flags |= flag; } public DcerpcException getResult() { if (result != 0) return new DcerpcException(result);
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 4.2K bytes - Viewed (0) -
internal/disk/directio_unix.go
// OpenFileDirectIO - bypass kernel cache. func OpenFileDirectIO(filePath string, flag int, perm os.FileMode) (*os.File, error) { return directio.OpenFile(filePath, flag, perm) } // DisableDirectIO - disables directio mode. func DisableDirectIO(f *os.File) error { fd := f.Fd() flag, err := unix.FcntlInt(fd, unix.F_GETFL, 0) if err != nil { return err } flag &= ^(syscall.O_DIRECT) _, err = unix.FcntlInt(fd, unix.F_SETFL, flag)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Jun 17 14:31:36 UTC 2023 - 1.6K bytes - Viewed (0) -
docs/debugging/xattr/main.go
} func main() { flag.StringVar(&path, "path", "", "path name where the attribute shall be applied") flag.StringVar(&name, "name", "", "attribute name or it can be a wildcard if '.' is specified") flag.Uint64Var(&value, "value", 0, "attribute value expects the value to be uint64") flag.BoolVar(&set, "set", false, "this is a set attribute operation") flag.Parse() if set && value == 0 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Dec 29 23:52:41 UTC 2023 - 3.2K bytes - Viewed (0) -
okcurl/src/main/kotlin/okhttp3/curl/Main.kt
val allowInsecure: Boolean by option("-k", "--insecure", help = "Allow connections to SSL sites without certs").flag() val showHeaders: Boolean by option("-i", "--include", help = "Include protocol headers in the output").flag() val showHttp2Frames: Boolean by option("--frames", help = "Log HTTP/2 frames to STDERR").flag()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.7K bytes - Viewed (0) -
docs/auditlog/auditlog-echo.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package main import ( "bytes" "encoding/json" "flag" "fmt" "io" "log" "net/http" ) var port int func init() { flag.IntVar(&port, "port", 8080, "Port to listen on") } func mainHandler(w http.ResponseWriter, r *http.Request) { body, err := io.ReadAll(r.Body) defer r.Body.Close()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 01 21:31:13 UTC 2024 - 1.5K bytes - Viewed (0)