Getting Started 🏁
Prerequisites
- Go project that well initiated. See tutorial.
Installation
Run this command inside your project.
bash
go get github.com/gowok/gowokImport in Project
In your main.go, write code like following example:
go
package main
import "github.com/gowok/gowok"
func main() {
gowok.Run()
}Create Configuration
- Create a YAML file named
config.yaml. - Then write this.
yaml
web:
enabled: true
host: :8080Running the Project
Run this command inside your project.
bash
go run main.go --config config.yamlIt will show output like this:
2025/01/13 10:43:09 INFO starting webYour project now ready to use 🔥
Let's try to send a request using curl!
bash
curl localhost:8080It will show output like this:
404 page not foundIt means that your project already run. It can receive actual request and give response to it.