当前位置: 首页>>代码示例>>Golang>>正文


Golang blob.ValidRefString函数代码示例

本文整理汇总了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
}
开发者ID:kdevroede,项目名称:camlistore,代码行数:9,代码来源:ui.go

示例2: wantsFileTreePage

func wantsFileTreePage(req *http.Request) bool {
	return httputil.IsGet(req) && blob.ValidRefString(req.FormValue("d"))
}
开发者ID:rakyll,项目名称:camlistore,代码行数:3,代码来源:ui.go

示例3: wantsBlobInfo

func wantsBlobInfo(req *http.Request) bool {
	return httputil.IsGet(req) && blob.ValidRefString(req.FormValue("b"))
}
开发者ID:rakyll,项目名称:camlistore,代码行数:3,代码来源:ui.go

示例4: wantsPermanode

func wantsPermanode(req *http.Request) bool {
	return httputil.IsGet(req) && blob.ValidRefString(req.FormValue("p"))
}
开发者ID:rakyll,项目名称:camlistore,代码行数:3,代码来源:ui.go

示例5: wantsFileTreePage

func wantsFileTreePage(req *http.Request) bool {
	return req.Method == "GET" && blob.ValidRefString(req.FormValue("d"))
}
开发者ID:newobject,项目名称:camlistore,代码行数:3,代码来源:ui.go

示例6: wantsBlobInfo

func wantsBlobInfo(req *http.Request) bool {
	return req.Method == "GET" && blob.ValidRefString(req.FormValue("b"))
}
开发者ID:newobject,项目名称:camlistore,代码行数:3,代码来源:ui.go

示例7: wantsPermanode

func wantsPermanode(req *http.Request) bool {
	return req.Method == "GET" && blob.ValidRefString(req.FormValue("p"))
}
开发者ID:newobject,项目名称:camlistore,代码行数:3,代码来源:ui.go


注:本文中的camlistore/org/pkg/blob.ValidRefString函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。