Skip to content

Instantly share code, notes, and snippets.

@YagmurOzden
Created December 1, 2022 05:53
Show Gist options
  • Save YagmurOzden/6e017c2daea86b48ef83b38731572662 to your computer and use it in GitHub Desktop.
Save YagmurOzden/6e017c2daea86b48ef83b38731572662 to your computer and use it in GitHub Desktop.
package main
import (
"Github/controller"
"Github/routes"
"log"
"github.com/gofiber/fiber/v2"
)
func main() {
log.Printf("%v Service Started", controller.APINAME)
app := fiber.New()
//routes
routes.VMRoute(app) //add this
err := app.Listen(":4000")
if err != nil {
log.Printf("%v Cannot listen port 4000. Error: %v", controller.APINAME, err.Error())
return
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment