mirror of
https://github.com/zoriya/tide.git
synced 2026-05-25 23:48:24 +00:00
Init go api
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
module tide/api
|
||||
|
||||
go 1.20
|
||||
+13
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user