Go 是一种开源编程语言,可以轻松构建简单、可靠、高效的软件
立即下载
资源介绍:
下载并安装
二进制发行版
官方二进制发行版可在https://go.dev/dl/获得。
下载二进制版本后,请访问https://go.dev/doc/install 获取安装说明。
从源安装
如果您的操作系统和架构组合没有可用的二进制分发版,请访问 https://go.dev/doc/install/source 获取源安装说明。
# RE2 basic search tests built by make log
# Wed May 12 12:13:22 EDT 2021
Regexp.SearchTests
strings
""
"a"
regexps
"a"
-;-;-;-
0-1;0-1;0-1;0-1
"^(?:a)$"
-;-;-;-
0-1;0-1;0-1;0-1
"^(?:a)"
-;-;-;-
0-1;0-1;0-1;0-1
"(?:a)$"
-;-;-;-
0-1;0-1;0-1;0-1
strings
""
"zyzzyva"
regexps
"a"
-;-;-;-
-;6-7;-;6-7
"^(?:a)$"
-;-;-;-
-;-;-;-
"^(?:a)"
-;-;-;-
-;-;-;-
"(?:a)$"
-;-;-;-
-;6-7;-;6-7
strings
""
"aa"
regexps
"a+"
-;-;-;-
0-2;0-2;0-2;0-2
"^(?:a+)$"
-;-;-;-
0-2;0-2;0-2;0-2
"^(?:a+)"
-;-;-;-
0-2;0-2;0-2;0-2
"(?:a+)$"
-;-;-;-
0-2;0-2;0-2;0-2
strings
""
"ab"
regexps
"(a+|b)+"
-;-;-;-
0-2 1-2;0-2 1-2;0-2 1-2;0-2 1-2
"^(?:(a+|b)+)$"
-;-;-;-
0-2 1-2;0-2 1-2;0-2 1-2;0-2 1-2
"^(?:(a+|b)+)"
-;-;-;-
0-2 1-2;0-2 1-2;0-2 1-2;0-2 1-2
"(?:(a+|b)+)$"
-;-;-;-
0-2 1-2;0-2 1-2;0-2 1-2;0-2 1-2
strings
""
"xabcdx"
regexps
"ab|cd"
-;-;-;-
-;1-3;-;1-3
"^(?:ab|cd)$"
-;-;-;-
-;-;-;-
"^(?:ab|cd)"
-;-;-;-
-;-;-;-
"(?:ab|cd)$"
-;-;-;-
-;-;-;-
strings
""
"hello\ngoodbye\n"
regexps
"h.*od?"
-;-;-;-
-;0-5;-;0-5
"^(?:h.*od?)$"
-;-;-;-
-;-;-;-
"^(?:h.*od?)"
-;-;-;-
-;0-5;-;0-5
"(?:h.*od?)$"
-;-;-;-
-;-;-;-
strings
""
"hello\ngoodbye\n"
regexps
"h.*o"
-;-;-;-
-;0-5;-;0-5
"^(?:h.*o)$"
-;-;-;-
-;-;-;-
"^(?:h.*o)"
-;-;-;-
-;0-5;-;0-5
"(?:h.*o)$"
-;-;-;-
-;-;-;-
strings
""
"goodbye\nhello\n"
regexps
"h.*o"
-;-;-;-
-;8-13;-;8-13
"^(?:h.*o)$"
-;-;-;-
-;-;-;-
"^(?:h.*o)"
-;-;-;-
-;-;-;-
"(?:h.*o)$"
-;-;-;-
-;-;-;-
strings
""
"hello world"
regexps
"h.*o"
-;-;-;-
-;0-8;-;0-8
"^(?:h.*o)$"
-;-;-;-
-;-;-;-
"^(?:h.*o)"
-;-;-;-
-;0-8;-;0-8
"(?:h.*o)$"
-;-;-;-
-;-;-;-
strings
""
"othello, world"
regexps
"h.*o"
-;-;-;-
-;2-11;-;2-11
"^(?:h.*o)$"
-;-;-;-
-;-;-;-
"^(?:h.*o)"
-;-;-;-
-;-;-;-
"(?:h.*o)$"
-;-;-;-
-;-;-;-
strings
""
"aaaaaaa"
regexps
"[^\\s\\S]"
-;-;-;-
-;-;-;-
"^(?:[^\\s\\S])$"
-;-;-;-
-;-;-;-
"^(?:[^\\s\\S])"
-;-;-;-
-;-;-;-
"(?:[^\\s\\S])$"
-;-;-;-
-;-;-;-
strings
""
"aaaaaaa"
regexps
"a"
-;-;-;-
-;0-1;-;0-1
"^(?:a)$"
-;-;-;-
-;-;-;-
"^(?:a)"
-;-;-;-
-;0-1;-;0-1
"(?:a)$"
-;-;-;-
-;6-7;-;6-7
strings
""
"aaaaaaa"
regexps
"a*"
0-0;0-0;0-0;0-0
0-7;0-7;0-7;0-7
"^(?:a*)$"
0-0;0-0;0-0;0-0
0-7;0-7;0-7;0-7
"^(?:a*)"
0-0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^(foo|bar|[A-Z])$"
-;-;-;-
0-3 0-3;0-3 0-3;0-3 0-3;0-3 0-3
"^(?:^(foo|bar|[A-Z])$)$"
-;-;-;-
0-3 0-3;0-3 0-3;0-3 0-3;0-3 0-3
"^(?:^(foo|bar|[A-Z])$)"
-;-;-;-
0-3 0-3;0-3 0-3;0-3 0-3;0-3 0-3
"(?:^(foo|bar|[A-Z])$)$"
-;-;-;-
0-3 0-3;0-3 0-3;0-3 0-3;0-3 0-3
strings
""
"X"
regexps
"^(foo|bar|[A-Z])$"
-;-;-;-
0-1 0-1;0-1 0-1;0-1 0-1;0-1 0-1
"^(?:^(foo|bar|[A-Z])$)$"
资源文件列表:
go-master.zip 大约有14792个文件