ok cool lets make CheckEnv actually do something and oh lets make it modular
Signed-off-by: Odyssey346 <odyssey346@disroot.org>
This commit is contained in:
4
main.go
4
main.go
@@ -4,6 +4,8 @@ import (
|
||||
"net/http"
|
||||
"html/template"
|
||||
"io"
|
||||
"log"
|
||||
"github.com/ProjectSegfault/segfautilities/otherthings"
|
||||
)
|
||||
|
||||
type StaticThingy struct {
|
||||
@@ -11,6 +13,8 @@ type StaticThingy struct {
|
||||
}
|
||||
|
||||
func main() {
|
||||
log.Println("[Segfautilities] Starting")
|
||||
otherthings.CheckEnv()
|
||||
tmpl := template.Must(template.ParseFiles("static/index.html"))
|
||||
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
data := StaticThingy{
|
||||
|
Reference in New Issue
Block a user