- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 195 for Strip (1.07 sec)
-
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) -
.github/workflows/maven_build_itself.yml
- name: Extract tarball shell: bash run: | set +e if [ -f ${{ env.TAR_BALL }} ]; then temp_dir=$(mktemp -d) tar -xzf ${{ env.TAR_BALL }} -C "$temp_dir" --strip 1 maven_bin_dir=$temp_dir/bin if [ -d $maven_bin_dir ]; then echo "tar.gz file \"${{ env.TAR_BALL }}\" successfully extracted in temporarily directory \"$temp_dir.\""
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Jun 03 17:58:28 UTC 2024 - 2.8K bytes - Viewed (0) -
src/cmd/link/internal/ld/stackcheck_test.go
grows 8 bytes, calls main.startRec<0> infinite cycle `, } // Parse stanzas stanza := regexp.MustCompile(`^(.*): nosplit stack over \d+ byte limit\n(.*\n(?: .*\n)*)`) // Strip comments from cmd/go out = regexp.MustCompile(`(?m)^#.*\n`).ReplaceAllString(out, "") for len(out) > 0 { m := stanza.FindStringSubmatch(out) if m == nil { t.Fatalf("unexpected output:\n%s", out) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 15 20:22:14 UTC 2022 - 2.2K bytes - Viewed (0) -
src/time/mono_test.go
t1w := t1.AddDate(0, 0, 0) if GetMono(&t1w) != 0 { t.Fatalf("AddDate didn't strip monotonic clock reading") } t2w := t2.AddDate(0, 0, 0) if GetMono(&t2w) != 0 { t.Fatalf("AddDate didn't strip monotonic clock reading") } t3w := t3.AddDate(0, 0, 0) if GetMono(&t3w) != 0 { t.Fatalf("AddDate didn't strip monotonic clock reading") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 19 17:10:49 UTC 2022 - 8.3K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/TestResources.java
* Copies the given resource to the test directory. */ public void maybeCopy(String resource) { // Multi version tests append to the method name, making it miss the resources // Below is a dirty way to strip the added content if (resource.contains(" ")) { resource = resource.substring(0, resource.indexOf(' ')); } TestFile dir = resources.findResource(resource); if (dir != null) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 3.4K bytes - Viewed (0)