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.
Package main 是 xlgo 的完整示例:MySQL + Redis + JWT + 一个 user CRUD。
运行前需准备:
MySQL(config.yaml 中 database 配置)
Redis(config.yaml 中 redis 配置)
启动后会自动迁移 user 表。访问:
POST /api/v1/login {"username":"alice","password":"secret"} → 返回 token
GET /api/v1/users/:id (需 Authorization: Bearer <token>)
POST /api/v1/users (创建用户)