本文整理汇总了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
}