Publish HTML quickly. https://html.house
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

32 lines
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. }