Init go api

This commit is contained in:
2023-09-15 23:06:38 +02:00
commit b455eabb79
4 changed files with 22 additions and 0 deletions
View File
+3
View File
@@ -0,0 +1,3 @@
module tide/api
go 1.20
+13
View File
@@ -0,0 +1,13 @@
package main
import (
"fmt"
"net/http"
)
func main() {
http.HandleFunc("/", func(resp http.ResponseWriter, req *http.Request) {
fmt.Println("test")
})
http.ListenAndServe(":7890", nil)
}
+6
View File
@@ -0,0 +1,6 @@
{pkgs ? import <nixpkgs> {}}:
pkgs.mkShell {
packages = with pkgs; [
go
];
}