- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 350 for Strip (0.05 sec)
-
test/fixedbugs/issue22660.go
"strings" ) func main() { f, err := ioutil.TempFile("", "issue22660.go") if err != nil { log.Fatal(err) } f.Close() defer os.Remove(f.Name()) // path must appear in error messages even if we strip them with -trimpath path := filepath.Join("users", "xxx", "go") var src bytes.Buffer fmt.Fprintf(&src, "//line %s:1\n", filepath.Join(path, "foo.go")) if err := ioutil.WriteFile(f.Name(), src.Bytes(), 0660); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1K bytes - Viewed (0) -
src/cmd/go/internal/gover/gomod.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 16:31:25 UTC 2023 - 1.1K bytes - Viewed (0) -
src/vendor/golang.org/x/sys/cpu/parse.go
// syntax, but allows the minor and patch versions to be elided. // // This is a copy of the Go runtime's parseRelease from // https://golang.org/cl/209597. func parseRelease(rel string) (major, minor, patch int, ok bool) { // Strip anything after a dash or plus. for i := 0; i < len(rel); i++ { if rel[i] == '-' || rel[i] == '+' { rel = rel[:i] break } } next := func() (int, bool) { for i := 0; i < len(rel); i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 30 17:48:21 UTC 2023 - 1K bytes - Viewed (0) -
src/cmd/go/internal/vcweb/insecure.go
// The insecure-redirect handler implementation doesn't depend or dir or env. // // The only effect of the directory is to determine which prefix the caller // will strip from the request before passing it on to this handler. return h, nil } func (h *insecureHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) { if req.Host == "" && req.URL.Host == "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 25 13:22:22 UTC 2022 - 1.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/versions/versions.go
// stripGo converts from a "go1.21" version to a "1.21" version. // If v does not start with "go", stripGo returns the empty string (a known invalid version). func stripGo(v string) string { v, _, _ = strings.Cut(v, "-") // strip -bigcorp suffix. if len(v) < 2 || v[:2] != "go" { return "" } return v[2:]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 2K bytes - Viewed (0) -
src/io/fs/format.go
// // d subdir/ // - hello.go func FormatDirEntry(dir DirEntry) string { name := dir.Name() b := make([]byte, 0, 5+len(name)) // The Type method does not return any permission bits, // so strip them from the string. mode := dir.Type().String() mode = mode[:len(mode)-9] b = append(b, mode...) b = append(b, ' ') b = append(b, name...) if dir.IsDir() { b = append(b, '/') } return string(b)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:34:35 UTC 2023 - 1.7K bytes - Viewed (0) -
cmd/server-startup-msg.go
// Returns true if input is IPv6 func isIPv6(host string) bool { h, _, err := net.SplitHostPort(host) if err != nil { h = host } ip := net.ParseIP(h) return ip.To16() != nil && ip.To4() == nil } // strip api endpoints list with standard ports such as // port "80" and "443" before displaying on the startup // banner. Returns a new list of API endpoints.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 6.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-MediaTypeCommon.kt
parameter.groups[3]!!.value } token.startsWith("'") && token.endsWith("'") && token.length > 2 -> { // If the token is 'single-quoted' it's invalid! But we're lenient and strip the quotes. token.substring(1, token.length - 1) } else -> token } parameterNamesAndValues += name parameterNamesAndValues += value s = parameter.range.last + 1 }
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/routes/openapi.go
if err != nil { klog.Fatalf("Failed to register versioned open api spec for root: %v", err) } grouped := make(map[string][]*restful.WebService) for _, t := range c.RegisteredWebServices() { // Strip the "/" prefix from the name gvName := t.RootPath()[1:] grouped[gvName] = []*restful.WebService{t} } for gv, ws := range grouped {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 16 19:05:13 UTC 2023 - 2.7K bytes - Viewed (0) -
src/go/version/version.go
// stripGo converts from a "go1.21-bigcorp" version to a "1.21" version. // If v does not start with "go", stripGo returns the empty string (a known invalid version). func stripGo(v string) string { v, _, _ = strings.Cut(v, "-") // strip -bigcorp suffix. if len(v) < 2 || v[:2] != "go" { return "" } return v[2:] } // Lang returns the Go language version for version x. // If x is not a valid version, Lang returns the empty string.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 31 19:56:48 UTC 2024 - 1.9K bytes - Viewed (0)