Documentation
¶
Overview ¶
Package urlconfig centralizes public URL and route path helpers.
Index ¶
- Constants
- func About() string
- func Activate() string
- func Admin() string
- func Docs() string
- func DocsContent(projectSlug, versionSlug, contentSlug any) string
- func DocsProject(slug any) string
- func Drafts() string
- func FilePath(filename string) string
- func GetDefaultAvatar() string
- func Home() string
- func Links() string
- func Login() string
- func Messages() string
- func Notifications() string
- func Post() string
- func PostDetail(id any) string
- func Publish() string
- func Register() string
- func ResetPassword() string
- func Rss() string
- func Search() string
- func Settings() string
- func Sponsors() string
- func User(id any) string
Constants ¶
View Source
const ( PathHome = "/" PathPost = "/p/post" PathDocs = "/docs" PathLinks = "/links" PathSponsors = "/sponsors" PathAbout = "/about" PathPublish = "/publish" PathSearch = "/search" PathRegister = "/login" PathLogin = "/login" PathRss = "/rss.xml" PathMessages = "/messages" PathDrafts = "/drafts" PathSettings = "/settings" PathNotifications = "/notifications" PathActivate = "/activate" PathResetPassword = "/reset-password" PathAdmin = "/admin" )
Public page route constants.
Variables ¶
This section is empty.
Functions ¶
func Activate ¶ added in v0.1.1
func Activate() string
Activate returns the account activation path.
func DocsContent ¶ added in v0.1.1
DocsContent returns the documentation content path.
func DocsProject ¶ added in v0.1.1
DocsProject returns the documentation project path for slug.
func GetDefaultAvatar ¶
func GetDefaultAvatar() string
GetDefaultAvatar returns the default avatar URL, using the CDN URL when configured.
func Notifications ¶ added in v0.1.1
func Notifications() string
Notifications returns the notifications page path.
func PostDetail ¶ added in v0.1.1
PostDetail returns the article detail path for id.
func ResetPassword ¶ added in v0.1.1
func ResetPassword() string
ResetPassword returns the password reset path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.