Should be good for future microservices and such Signed-off-by: Ethan Wellenreiter <ewellenreiter@gmail.com>
22 lines
232 B
Go
22 lines
232 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
)
|
|
|
|
func main() {
|
|
// set up the application config here
|
|
|
|
cfg := config{
|
|
addr: ":8080",
|
|
}
|
|
|
|
app := application{
|
|
config: cfg,
|
|
}
|
|
|
|
// fmt.Println(app)
|
|
mux := app.mount()
|
|
log.Fatal(app.run(mux))
|
|
}
|