- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 533 for Parses (0.22 sec)
-
cmd/bucket-lifecycle.go
return true } return false // in progress or completed but expired } // parseRestoreObjStatus parses restoreHdr from AmzRestore header. If the value is valid it returns a // restoreObjStatus value with the status and expiry (if any). Otherwise returns // the empty value and an error indicating the parse failure. func parseRestoreObjStatus(restoreHdr string) (restoreObjStatus, error) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:31:51 UTC 2024 - 33.3K bytes - Viewed (0) -
src/cmd/link/internal/ld/main.go
} f, err := os.Create(*memprofile) if err != nil { log.Fatalf("%v", err) } AtExit(func() { // Profile all outstanding allocations. runtime.GC() // compilebench parses the memory profile to extract memstats, // which are only written in the legacy pprof format. // See golang.org/issue/18641 and runtime/pprof/pprof.go:writeHeap. const writeLegacyFormat = 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:59:50 UTC 2024 - 16.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/check_test.go
return nopos, err.Error() } } // absDiff returns the absolute difference between x and y. func absDiff(x, y uint) uint { if x < y { return y - x } return x - y } // parseFlags parses flags from the first line of the given source if the line // starts with "//" (line comment) followed by "-" (possibly with spaces // between). Otherwise the line is ignored. func parseFlags(src []byte, flags *flag.FlagSet) error {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 19:45:33 UTC 2024 - 13.8K bytes - Viewed (0) -
src/flag/flag.go
} return nil } // Parsed reports whether f.Parse has been called. func (f *FlagSet) Parsed() bool { return f.parsed } // Parse parses the command-line flags from [os.Args][1:]. Must be called // after all flags are defined and before flags are accessed by the program. func Parse() { // Ignore errors; CommandLine is set for ExitOnError. CommandLine.Parse(os.Args[1:]) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:38:24 UTC 2024 - 39.7K bytes - Viewed (0) -
cmd/kubelet/app/server.go
DisableFlagParsing: true, SilenceUsage: true, RunE: func(cmd *cobra.Command, args []string) error { // initial flag parse, since we disable cobra's flag parsing if err := cleanFlagSet.Parse(args); err != nil { return fmt.Errorf("failed to parse kubelet flag: %w", err) } // check if there are non-flag arguments in the command line cmds := cleanFlagSet.Args() if len(cmds) > 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 00:05:34 UTC 2024 - 53.9K bytes - Viewed (0) -
src/go/types/check_test.go
) var fset = token.NewFileSet() func parseFiles(t *testing.T, filenames []string, srcs [][]byte, mode parser.Mode) ([]*ast.File, []error) { var files []*ast.File var errlist []error for i, filename := range filenames { file, err := parser.ParseFile(fset, filename, srcs[i], mode) if file == nil { t.Fatalf("%s: %s", filename, err) } files = append(files, file) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 19:45:33 UTC 2024 - 14.1K bytes - Viewed (0) -
pkg/kubelet/logs/container_log_manager.go
} }() r, err := gzip.NewReader(f) if err != nil { return nil, fmt.Errorf("failed to create gzip reader: %v", err) } return &compressReadCloser{f: f, Reader: r}, nil } // parseMaxSize parses quantity string to int64 max size in bytes. func parseMaxSize(size string) (int64, error) { quantity, err := resource.ParseQuantity(size) if err != nil { return 0, err } maxSize, ok := quantity.AsInt64()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 15K bytes - Viewed (0) -
src/net/conf.go
case dnsSource: return hostLookupDNS, dnsConf } // Something weird. Fallback to the default. return fallbackOrder, dnsConf } var netdns = godebug.New("netdns") // goDebugNetDNS parses the value of the GODEBUG "netdns" value. // The netdns value can be of the form: // // 1 // debug level 1 // 2 // debug level 2 // cgo // use cgo for DNS lookups // go // use go for DNS lookups
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 18 03:13:26 UTC 2024 - 15.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/sumdb/tlog/tile.go
} var L string if t.L == -1 { L = "data" } else { L = fmt.Sprintf("%d", t.L) } return fmt.Sprintf("tile/%d/%s/%s%s", t.H, L, nStr, pStr) } // ParseTilePath parses a tile coordinate path. func ParseTilePath(path string) (Tile, error) { f := strings.Split(path, "/") if len(f) < 4 || f[0] != "tile" { return Tile{}, &badPathError{path} } h, err1 := strconv.Atoi(f[1])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13K bytes - Viewed (0) -
src/net/tcpsock.go
// // If the host in the address parameter is not a literal IP address or // the port is not a literal port number, ResolveTCPAddr resolves the // address to an address of TCP end point. // Otherwise, it parses the address as a pair of literal IP address // and port number. // The address parameter can use a host name, but this is not // recommended, because it will return at most one of the host name's // IP addresses. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 03:10:07 UTC 2024 - 13.7K bytes - Viewed (0)