Brijesh's Git Server — watchman @ main

observability tool, needs to be rewritten once identity is stable

main.go (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
package main

import (
	"fmt"
	"watchman/internal"
	"watchman/utils"
)

func main() {
	server := internal.NewServer()

	fmt.Println("Staring server on port ", utils.ReadConfig().Port)

	err := server.ListenAndServe()
	if err != nil {
		panic(fmt.Sprintf("cannot start server: %s", err))
	}
}