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ů.
 
 
 
 

27 řádky
690 B

  1. package publicbio
  2. import (
  3. "github.com/writeas/web-core/converter"
  4. "html/template"
  5. )
  6. // Profile is a publicly-viewable user, containing only the data necessary
  7. // to display a profile.
  8. type Profile struct {
  9. AvatarURL string `json:"avatar_url"`
  10. Username string `json:"username"`
  11. Name converter.NullJSONString `json:"name"`
  12. Header converter.NullJSONString `json:"header"`
  13. Bio converter.NullJSONString `json:"bio"`
  14. Links []Link `json:"links"`
  15. }
  16. func (p *Profile) RenderedBio() template.HTML {
  17. return template.HTML(p.Bio.String)
  18. }
  19. type Link struct {
  20. Title string `json:"title"`
  21. URL string `json:"url"`
  22. }