This repository has been archived on 2022-05-25. You can view files and clone it, but cannot push or open issues or pull requests.
elon-eats-my-tweets/main.go

22 lines
309 B
Go
Raw Normal View History

2022-05-19 15:07:49 +00:00
package main
2022-05-19 19:51:12 +00:00
import (
"log"
2022-05-20 00:26:42 +00:00
"math/rand"
"time"
2022-05-19 19:51:12 +00:00
"git.netflux.io/rob/elon-eats-my-tweets/config"
"git.netflux.io/rob/elon-eats-my-tweets/httpserver"
)
2022-05-19 15:07:49 +00:00
func main() {
2022-05-20 00:26:42 +00:00
rand.Seed(time.Now().UnixNano())
c, err := config.NewFromEnv()
if err != nil {
log.Fatal(err)
}
2022-05-19 19:51:12 +00:00
log.Fatal(httpserver.Start(c))
2022-05-19 15:07:49 +00:00
}