refactor - pasdns can now look sane

This commit is contained in:
amy 2024-07-15 21:54:27 +03:30
parent cc8322f221
commit 0be492aa87
7 changed files with 97 additions and 31 deletions

17
src/test/test.go Normal file
View file

@ -0,0 +1,17 @@
package main
import (
"log"
pas "exhq.dev/pas/src"
"exhq.dev/pas/src/Constants"
)
func main() {
err := pas.StartServer(42069, func(request Constants.Request, respond func(Constants.Response)) {
respond(Constants.Response{OperationSuccessClassification: Constants.OK, ResponseHeader: map[string]string{}, Body: "say gex"})
}, nil)
if err != nil {
log.Fatal(err)
}
}