當前位置: 首頁>>代碼示例>>Golang>>正文


Golang revel.Unbind函數代碼示例

本文整理匯總了Golang中github.com/robfig/revel.Unbind函數的典型用法代碼示例。如果您正苦於以下問題:Golang Unbind函數的具體用法?Golang Unbind怎麽用?Golang Unbind使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了Unbind函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。

示例1: NewCategory

func (_ tAdmin) NewCategory(
	name string,
	description string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "name", name)
	revel.Unbind(args, "description", description)
	return revel.MainRouter.Reverse("Admin.NewCategory", args).Url
}
開發者ID:rodfrey,項目名稱:ironzebra,代碼行數:10,代碼來源:routes.go

示例2: LoginPost

func (_ tApp) LoginPost(
	username string,
	password string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "username", username)
	revel.Unbind(args, "password", password)
	return revel.MainRouter.Reverse("App.LoginPost", args).Url
}
開發者ID:rodfrey,項目名稱:ironzebra,代碼行數:10,代碼來源:routes.go

示例3: RedirectToSlug

func (_ tBlog) RedirectToSlug(
	category string,
	id int,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "category", category)
	revel.Unbind(args, "id", id)
	return revel.MainRouter.Reverse("Blog.RedirectToSlug", args).Url
}
開發者ID:rodfrey,項目名稱:ironzebra,代碼行數:10,代碼來源:routes.go

示例4: Serve

func (_ tStatic) Serve(
	prefix string,
	filepath string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "prefix", prefix)
	revel.Unbind(args, "filepath", filepath)
	return revel.MainRouter.Reverse("Static.Serve", args).Url
}
開發者ID:jsli,項目名稱:GoCMS,代碼行數:10,代碼來源:routes.go

示例5: Edit

func (_ tAdmin) Edit(
	id int,
	slug string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "id", id)
	revel.Unbind(args, "slug", slug)
	return revel.MainRouter.Reverse("Admin.Edit", args).Url
}
開發者ID:rodfrey,項目名稱:ironzebra,代碼行數:10,代碼來源:routes.go

示例6: ListTag

func (_ tBlog) ListTag(
	category string,
	tag string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "category", category)
	revel.Unbind(args, "tag", tag)
	return revel.MainRouter.Reverse("Blog.ListTag", args).Url
}
開發者ID:netsharec,項目名稱:ironzebra,代碼行數:10,代碼來源:routes.go

示例7: ReportCard

func (_ tApp) ReportCard(
	user string,
	repo string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "user", user)
	revel.Unbind(args, "repo", repo)
	return revel.MainRouter.Reverse("App.ReportCard", args).Url
}
開發者ID:kyleconroy,項目名稱:rottenrepos,代碼行數:10,代碼來源:routes.go

示例8: SaveTags

func (_ tAdmin) SaveTags(
	shortid int,
	tags string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "shortid", shortid)
	revel.Unbind(args, "tags", tags)
	return revel.MainRouter.Reverse("Admin.SaveTags", args).Url
}
開發者ID:netsharec,項目名稱:ironzebra,代碼行數:10,代碼來源:routes.go

示例9: Run

func (_ tTestRunner) Run(
	suite string,
	test string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "suite", suite)
	revel.Unbind(args, "test", test)
	return revel.MainRouter.Reverse("TestRunner.Run", args).Url
}
開發者ID:jsli,項目名稱:GoCMS,代碼行數:10,代碼來源:routes.go

示例10: Show

func (_ tBlog) Show(
	category string,
	id int,
	slugString string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "category", category)
	revel.Unbind(args, "id", id)
	revel.Unbind(args, "slugString", slugString)
	return revel.MainRouter.Reverse("Blog.Show", args).Url
}
開發者ID:rodfrey,項目名稱:ironzebra,代碼行數:12,代碼來源:routes.go

示例11: SaveNew

func (_ tAdmin) SaveNew(
	title string,
	subtitle string,
	category string,
	body string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "title", title)
	revel.Unbind(args, "subtitle", subtitle)
	revel.Unbind(args, "category", category)
	revel.Unbind(args, "body", body)
	return revel.MainRouter.Reverse("Admin.SaveNew", args).Url
}
開發者ID:rodfrey,項目名稱:ironzebra,代碼行數:14,代碼來源:routes.go

示例12: CreateImage

func (_ tApp) CreateImage(
	func_name string,
	search_type string,
	call_depth uint,
	direction string,
	data_source string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "func_name", func_name)
	revel.Unbind(args, "search_type", search_type)
	revel.Unbind(args, "call_depth", call_depth)
	revel.Unbind(args, "direction", direction)
	revel.Unbind(args, "data_source", data_source)
	return revel.MainRouter.Reverse("App.CreateImage", args).Url
}
開發者ID:jinlf,項目名稱:callgraph,代碼行數:16,代碼來源:routes.go

示例13: EditPwd

func (_ tUser) EditPwd(
		admin interface{},
		) string {
	args := make(map[string]string)
	
	revel.Unbind(args, "admin", admin)
	return revel.MainRouter.Reverse("User.EditPwd", args).Url
}
開發者ID:qmdx,項目名稱:GoCMS,代碼行數:8,代碼來源:routes.go

示例14: Delete

func (_ tRole) Delete(
		role interface{},
		) string {
	args := make(map[string]string)
	
	revel.Unbind(args, "role", role)
	return revel.MainRouter.Reverse("Role.Delete", args).Url
}
開發者ID:qmdx,項目名稱:GoCMS,代碼行數:8,代碼來源:routes.go

示例15: Index

func (_ tLogs) Index(
		logs interface{},
		) string {
	args := make(map[string]string)
	
	revel.Unbind(args, "logs", logs)
	return revel.MainRouter.Reverse("Logs.Index", args).Url
}
開發者ID:qmdx,項目名稱:GoCMS,代碼行數:8,代碼來源:routes.go


注:本文中的github.com/robfig/revel.Unbind函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。