Skip to content

Getting Started 🏁

Prerequisites

  • Go project that well initiated. See tutorial.

Installation

Run this command inside your project.

bash
go get github.com/gowok/gowok

Import in Project

In your main.go, write code like following example:

go
package main

import "github.com/gowok/gowok"

func main() {
	gowok.Get().Run()
}

Create Configuration

  1. Create a YAML file named config.yaml.
  2. Then write this.
yaml
app:
  web:
    enabled: true
    host: :8080

Running the Project

Run this command inside your project.

bash
go run main.go

It will show output like this:

2025/01/13 10:43:09 INFO starting web

Your project now ready to use 🔥

Let's try to send a request using curl!

bash
curl localhost:8080

It will show output like this:

404 page not found

It means that your project already run. It can receive actual request and give response to it.

Released under the MIT License.