Default routes

Report a typo

Select the routes you can use to get an "ok" response after running the Go program below:

package main

import (
    "github.com/gin-gonic/gin"
    "log"
    "net/http"
)

func main() {
    router := gin.Default()
    router.GET("/available", func(context *gin.Context) {
        context.String(http.StatusOK, "ok")
    })

    err := router.Run()
    if err != nil {
        log.Fatal(err)
    }
}
Select one or more options from the list
___

Create a free account to access the full topic