The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
This adapter must be used in combination with api2go in order to be useful.
It allows you to use api2go within your normal gin application.
Example
package main
import (
"github.com/gin-gonic/gin"
"github.com/manyminds/api2go"
"github.com/manyminds/api2go-adapter/gingonic"
)
func main() {
r := gin.Default()
api := api2go.NewAPIWithRouting(
"api",
api2go.NewStaticResolver("/"),
api2go.DefaultContentMarshalers,
gingonic.New(r),
)
// Add your API resources here...
// see https://github.com/manyminds/api2go for more information
r.GET("/ping", func(c *gin.Context) {
c.String(200, "pong")
})
r.Run(":8080") // listen and serve on 0.0.0.0:8080
}