Publish HTML quickly. https://html.house
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 

32 satır
494 B

  1. package htmlhouse
  2. import (
  3. "fmt"
  4. )
  5. type (
  6. PublicHouse struct {
  7. ID string `json:"id"`
  8. Title string `json:"title"`
  9. URL string `json:"url"`
  10. ThumbURL string `json:"thumb_url"`
  11. }
  12. HouseStats struct {
  13. ID string
  14. Stats []Stat
  15. }
  16. Stat struct {
  17. Data string
  18. Label string
  19. }
  20. )
  21. func (h *PublicHouse) process(app *app) {
  22. h.URL = fmt.Sprintf("%s/%s.html", app.cfg.HostName, h.ID)
  23. if h.ThumbURL != "" {
  24. h.ThumbURL = "https://peeper.html.house/" + h.ThumbURL
  25. }
  26. }