Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for MustCompile (0.48 sec)

  1. misc/linkcheck/linkcheck.go

    }
    
    var (
    	mu          sync.Mutex
    	crawled     = make(map[string]bool)      // URL without fragment -> true
    	neededFrags = make(map[urlFrag][]string) // URL#frag -> who needs it
    )
    
    var aRx = regexp.MustCompile(`<a href=['"]?(/[^\s'">]+)`)
    
    // Owned by crawlLoop goroutine:
    var (
    	linkSources = make(map[string][]string) // url no fragment -> sources
    	fragExists  = make(map[urlFrag]bool)
    	problems    []string
    )
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 06 15:53:04 GMT 2021
    - 3.9K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/swig/swig_test.go

    	// See https://golang.org/issue/22858.
    	out, err := exec.Command(swig, "-version").CombinedOutput()
    	if err != nil {
    		t.Skipf("failed to get swig version:%s\n%s", err, string(out))
    	}
    
    	re := regexp.MustCompile(`[vV]ersion +(\d+)([.]\d+)?([.]\d+)?`)
    	matches := re.FindSubmatch(out)
    	if matches == nil {
    		// Can't find version number; hope for the best.
    		t.Logf("failed to find swig version, continuing")
    		return
    	}
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  3. src/archive/zip/reader_test.go

    0000190 00 00 00 00 00 00 00 00 00 00 00 72 2f 72 2e 7a
    00001a0 69 70 50 4b 05 06 00 00 00 00 01 00 01 00 35 00
    00001b0 00 00 6d 01 00 00 00 00`
    	s = regexp.MustCompile(`[0-9a-f]{7}`).ReplaceAllString(s, "")
    	s = regexp.MustCompile(`\s+`).ReplaceAllString(s, "")
    	b, err := hex.DecodeString(s)
    	if err != nil {
    		panic(err)
    	}
    	return b
    }
    
    func returnRecursiveZip() (r io.ReaderAt, size int64) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  4. misc/go_android_exec/exitcode_test.go

    		if got := out.String(); text != got {
    			t.Errorf("want full output %q, got %q", text, got)
    		}
    	}
    	wantErr = regexp.MustCompile("^no exit code")
    	check("abc")
    	check("exitcode")
    	check("exitcode=")
    	check("exitcode=123\n")
    	wantErr = regexp.MustCompile("^bad exit code: .* value out of range")
    	check("exitcode=999999999999999999999999")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed May 03 14:54:58 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/endtoend_test.go

    // It might be at the beginning but it might be in the middle of the printed instruction.
    var fileLineRE = regexp.MustCompile(`(?:^|\()(testdata[/\\][\da-z]+\.s:\d+)(?:$|\)|:)`)
    
    // Same as in test/run.go
    var (
    	errRE       = regexp.MustCompile(`// ERROR ?(.*)`)
    	errQuotesRE = regexp.MustCompile(`"([^"]*)"`)
    )
    
    func testErrors(t *testing.T, goarch, file string, flags ...string) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Dec 07 18:42:59 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  6. 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)
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  7. 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)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  8. api/go1.txt

    pkg regexp, func Match(string, []uint8) (bool, error)
    pkg regexp, func MatchReader(string, io.RuneReader) (bool, error)
    pkg regexp, func MatchString(string, string) (bool, error)
    pkg regexp, func MustCompile(string) *Regexp
    pkg regexp, func MustCompilePOSIX(string) *Regexp
    pkg regexp, func QuoteMeta(string) string
    pkg regexp, method (*Regexp) Expand([]uint8, []uint8, []uint8, []int) []uint8
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
Back to top