该
ADD命令
COPY都允许Golang
filepath.Match通配符
您可以在Go的测试代码中找到许多示例:https
:
//golang.org/src/pkg/path/filepath/match_test.go
以下是针对那些无法访问Google / golang.org的中国人的规则:
'*' matches any sequence of non-Separator characters '?' matches any single non-Separator character '[' [ '^' ] { character-range } ']' character class (must be non-empty) cmatches character c (c != '*', '?', '\', '[') '\' c matches character ccharacter-range: cmatches character c (c != '\', '-', ']') '\' c matches character c lo '-' hi matches character c for lo <= c <= hi
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)