Documentation
¶
Overview ¶
Package printuser renders the user chip that appears inside wikitext output.
Index ¶
- Constants
- type Options
- type Renderer
- func (r *Renderer) Anonymous(opts Options) string
- func (r *Renderer) External(username string, opts Options) string
- func (r *Renderer) System(opts Options) string
- func (r *Renderer) Tails(u User, rs []roles.Role) (roles.Tails, error)
- func (r *Renderer) User(u User, rs []roles.Role, opts Options) (string, error)
- type User
Constants ¶
const ( AnonAvatar = "/-/static/images/anon_avatar.png" DefaultAvatar = "/-/static/images/default_avatar.png" WikidotAvatar = "/-/static/images/wikidot_avatar.png" )
const ( TypeNormal = "normal" TypeWikidot = "wikidot" TypeSystem = "system" TypeBot = "bot" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func (*Renderer) External ¶
External is the wd: user nobody imported. The name is normalized as a page name rather than a user name, and the displayed form keeps the original.