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.
 
 
 
 

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