コード例 #1
0
ファイル: handler.go プロジェクト: peterwatts/camlistore
func (dr *DescribeRequest) describeRefs(str string, depth int) {
	for _, match := range blobRefPattern.FindAllString(str, -1) {
		if ref, ok := blob.ParseKnown(match); ok {
			dr.Describe(ref, depth-1)
		}
	}
}
コード例 #2
0
ファイル: ui.go プロジェクト: Jimmy99/camlistore
func wantsBlobRef(req *http.Request) bool {
	_, ok := blob.ParseKnown(httputil.PathSuffix(req))
	return ok
}