Publish HTML quickly. https://html.house
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

22 wiersze
332 B

  1. package main
  2. import (
  3. "fmt"
  4. "github.com/joho/godotenv"
  5. "github.com/writeas/htmlhouse"
  6. "os"
  7. )
  8. func main() {
  9. source := os.Getenv("CONFIG_SOURCE")
  10. if source == "" {
  11. source = ".env"
  12. }
  13. err := godotenv.Load(source)
  14. if err != nil {
  15. fmt.Println("unable to load configuration file", source, ":", err)
  16. }
  17. htmlhouse.Serve()
  18. }