- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 51 for MustCompile (0.1 sec)
-
src/cmd/api/main_test.go
func contextName(c *build.Context) string { s := c.GOOS + "-" + c.GOARCH if c.CgoEnabled { s += "-cgo" } if c.Dir != "" { s += fmt.Sprintf(" [%s]", c.Dir) } return s } var internalPkg = regexp.MustCompile(`(^|/)internal($|/)`) var exitCode = 0 func Check(t *testing.T) { checkFiles, err := filepath.Glob(filepath.Join(testenv.GOROOT(t), "api/go1*.txt")) if err != nil { t.Fatal(err) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Sep 04 18:16:59 UTC 2024 - 31.4K bytes - Viewed (0) -
misc/go_android_exec/main.go
// This is the only case we use a group, and we'll use this // group to extract the numeric code. fmt.Fprintf(&exitReStr, "%s([0-9]+)$", exitStr) exitRe := regexp.MustCompile(exitReStr.String()) return &exitCodeFilter{w: w, exitRe: exitRe}, exitStr } func (f *exitCodeFilter) Write(data []byte) (int, error) { n := len(data) f.buf.Write(data)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Aug 21 17:46:57 UTC 2023 - 15.3K bytes - Viewed (0) -
internal/config/config.go
siteLK.RLock() defer siteLK.RUnlock() return s.region } var validRegionRegex = regexp.MustCompile("^[a-zA-Z][a-zA-Z0-9-_-]+$") // validSiteNameRegex - allows lowercase letters, digits and '-', starts with // letter. At least 2 characters long. var validSiteNameRegex = regexp.MustCompile("^[a-z][a-z0-9-]+$") // LookupSite - get site related configuration. Loads configuration from legacy
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 03 18:23:41 UTC 2024 - 37.7K bytes - Viewed (0) -
tests/create_test.go
"name": "cat", "user_id": gorm.Expr("(?)", DB.Table("(?) as tmp", subQuery).Select("@uid:=id")), }, { "name": "dog", "user_id": gorm.Expr("@uid"), }, }) if !regexp.MustCompile(`INSERT INTO .pets. \(.name.,.user_id.\) .*VALUES \(.+,\(SELECT @uid:=id FROM \(SELECT id FROM .users. WHERE name=.+\) as tmp\)\),\(.+,@uid\)`).MatchString(result.Statement.SQL.String()) {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Mar 19 03:50:28 UTC 2024 - 26.4K bytes - Viewed (0) -
docs/debugging/xl-meta/main.go
means full recursive. 'testdir/**/xl.meta' will search for all xl.meta recursively. FLAGS: {{range .VisibleFlags}}{{.}} {{end}} ` isPart := regexp.MustCompile("[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/part\\.[0-9]+$") app.HideHelpCommand = true app.Flags = []cli.Flag{ cli.BoolFlag{ Usage: "print each file as a separate line without formatting",
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 05 11:57:44 UTC 2024 - 40.3K bytes - Viewed (0) -
statement.go
if changed(field) { return true } } } } return false } var matchName = func() func(tableColumn string) (table, column string) { nameMatcher := regexp.MustCompile(`^(?:\W?(\w+?)\W?\.)?(?:(\*)|\W?(\w+?)\W?)$`) return func(tableColumn string) (table, column string) { if matches := nameMatcher.FindStringSubmatch(tableColumn); len(matches) == 4 { table = matches[1]
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Jun 24 09:42:59 UTC 2024 - 19.9K bytes - Viewed (0) -
istioctl/pkg/ztunnelconfig/ztunnelconfig.go
} } else { logParts := strings.Split(ol, "::") // account for any specified namespace loggerAndLevelOnly := logParts[len(logParts)-1] loggerLevel := regexp.MustCompile(`[:=]`).Split(loggerAndLevelOnly, 2) // TODO validate ztunnel logger name when available: https://github.com/istio/ztunnel/issues/426 level, ok := stringToLevel[loggerLevel[1]] if !ok {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 19:17:45 UTC 2024 - 22.2K bytes - Viewed (0) -
cmd/admin-handlers.go
// 2 - flags e.g. `--address :9000 --certs-dir /etc/minio/certs` // 3 - pool args e.g. `https://node{01...16}.domain/data/disk{001...204} https://node{17...32}.domain/data/disk{001...204}` re := regexp.MustCompile(`^(.*minio\s+server\s+)(--[^\s]+\s+[^\s]+\s+)*(.*)`) // stays unchanged in the anonymized version cmdLineWithoutPools := re.ReplaceAllString(cmdLine, `$1$2`) // to be anonymized
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Oct 04 11:32:32 UTC 2024 - 99.7K bytes - Viewed (0) -
istioctl/pkg/proxyconfig/proxyconfig.go
} } else { logParts := strings.Split(ol, "::") // account for any specified namespace loggerAndLevelOnly := logParts[len(logParts)-1] loggerLevel := regexp.MustCompile(`[:=]`).Split(loggerAndLevelOnly, 2) if !strings.Contains(loggerName, loggerLevel[0]) && loggerLevel[0] != defaultLoggerName { return fmt.Errorf("unrecognized logger name: %v", loggerLevel[0]) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 15:53:49 UTC 2024 - 50.6K bytes - Viewed (0) -
cmd/server_test.go
response, err = s.client.Do(request) c.Assert(err, nil) c.Assert(response.StatusCode, http.StatusOK) getContent, err := io.ReadAll(response.Body) c.Assert(err, nil) r := regexp.MustCompile( `<ListVersionsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">.*` + `<DeleteMarker><Key>file.1</Key>.*<IsLatest>true</IsLatest>.*</DeleteMarker>` +
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 15 16:28:02 UTC 2024 - 116.3K bytes - Viewed (0)