A simple page for all your links.
Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
|
- package publicbio
-
- import (
- "github.com/writeas/web-core/converter"
- "html/template"
- )
-
- // Profile is a publicly-viewable user, containing only the data necessary
- // to display a profile.
- type Profile struct {
- AvatarURL string `json:"avatar_url"`
- Username string `json:"username"`
- Name converter.NullJSONString `json:"name"`
- Header converter.NullJSONString `json:"header"`
- Bio converter.NullJSONString `json:"bio"`
- Links []Link `json:"links"`
- }
-
- func (p *Profile) RenderedBio() template.HTML {
- return template.HTML(p.Bio.String)
- }
-
- type Link struct {
- Title string `json:"title"`
- URL string `json:"url"`
- }
|