- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for if (0.21 sec)
-
cmd/main.go
var minioHelpTemplate = `NAME: {{.Name}} - {{.Usage}} DESCRIPTION: {{.Description}} USAGE: {{.HelpName}} {{if .VisibleFlags}}[FLAGS] {{end}}COMMAND{{if .VisibleFlags}}{{end}} [ARGS...] COMMANDS: {{range .VisibleCommands}}{{join .Names ", "}}{{ "\t" }}{{.Usage}} {{end}}{{if .VisibleFlags}} FLAGS: {{range .VisibleFlags}}{{.}} {{end}}{{end}} VERSION: {{.Version}} `
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed May 01 17:57:52 GMT 2024 - 6.4K 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() {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed Mar 06 11:43:16 GMT 2024 - 3.4K bytes - Viewed (0) -
docs/debugging/inspect/main.go
) func main() { flag.Parse() if *genkey { generateKeys() os.Exit(0) } var privateKey []byte if *keyHex == "" { if b, err := os.ReadFile(*privKeyPath); err == nil { privateKey = b fmt.Println("Using private key from", *privKeyPath) } // Prompt for decryption key if no --key or --private-key are provided if len(privateKey) == 0 { reader := bufio.NewReader(os.Stdin)
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 11 21:22:47 GMT 2024 - 4.8K bytes - Viewed (0) -
docs/debugging/s3-check-md5/main.go
flag.Parse() if endpoint == "" { log.Fatalln("Endpoint is not provided") } if accessKey == "" { log.Fatalln("Access key is not provided") } if secretKey == "" { log.Fatalln("Secret key is not provided") } if bucket == "" && prefix != "" { log.Fatalln("--prefix is specified without --bucket.") } var minModTime time.Time if minModTimeStr != "" { var e error
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat Feb 17 01:15:57 GMT 2024 - 6.3K bytes - Viewed (0) -
docs/debugging/reorder-disks/main.go
if err != nil { return nil, err } exp := argP.Expand() if node == "" { for index, e := range exp { result = append(result, localDisk{index: index, path: strings.Join(e, "")}) } } else { for index, e := range exp { u, err := url.Parse(strings.Join(e, "")) if err != nil { return nil, err } if strings.Contains(u.Host, node) {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 5.4K bytes - Viewed (0) -
docs/debugging/xattr/main.go
table.SetNoWhiteSpace(true) if set { if err := setxattr(path, name, value); err != nil { log.Fatalln(fmt.Errorf("setting attribute %s failed with: %v", name, err)) } } else { if name == "" { log.Fatalln("you must specify an attribute name for reading") } var names []string if name == "." { attrs, err := listxattr(path) if err != nil {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Dec 29 23:52:41 GMT 2023 - 3.2K bytes - Viewed (0) -
cni/cmd/istio-cni/main.go
"istio.io/istio/cni/pkg/plugin" "istio.io/istio/pkg/log" istioversion "istio.io/istio/pkg/version" ) func main() { if err := runPlugin(); err != nil { os.Exit(1) } } func runPlugin() error { if err := log.Configure(plugin.GetLoggingOptions("")); err != nil { return err } defer func() { // Log sync will send logs to install-cni container via UDS.
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 30 13:56:46 GMT 2024 - 1.9K bytes - Viewed (0)