本文整理匯總了Golang中camlistore/org/pkg/blob.ValidRefString函數的典型用法代碼示例。如果您正苦於以下問題:Golang ValidRefString函數的具體用法?Golang ValidRefString怎麽用?Golang ValidRefString使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了ValidRefString函數的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: wantsPermanode
func wantsPermanode(req *http.Request) bool {
if httputil.IsGet(req) && blob.ValidRefString(req.FormValue("p")) {
// The new UI is handled by index.html.
if req.FormValue("newui") != "1" {
return true
}
}
return false
}
示例2: wantsFileTreePage
func wantsFileTreePage(req *http.Request) bool {
return httputil.IsGet(req) && blob.ValidRefString(req.FormValue("d"))
}
示例3: wantsBlobInfo
func wantsBlobInfo(req *http.Request) bool {
return httputil.IsGet(req) && blob.ValidRefString(req.FormValue("b"))
}
示例4: wantsPermanode
func wantsPermanode(req *http.Request) bool {
return httputil.IsGet(req) && blob.ValidRefString(req.FormValue("p"))
}
示例5: wantsFileTreePage
func wantsFileTreePage(req *http.Request) bool {
return req.Method == "GET" && blob.ValidRefString(req.FormValue("d"))
}
示例6: wantsBlobInfo
func wantsBlobInfo(req *http.Request) bool {
return req.Method == "GET" && blob.ValidRefString(req.FormValue("b"))
}
示例7: wantsPermanode
func wantsPermanode(req *http.Request) bool {
return req.Method == "GET" && blob.ValidRefString(req.FormValue("p"))
}