本文整理匯總了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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}