Go排行榜用go编写的Redis支持的排行榜处理程序。 安装$ go获取github.com/tehsis/leaderboard示例包main; import(“ fmt”“ github.com/tehsis/leaderboard” redis“ go go排行榜Go编写的具有redis支持的排行榜处理程序。安装$ go get github.com/tehsis/leaderboard示例包main; import(” fmt“” github .com / tehsis / leaderboard“ redis” gopkg.in/redis.v5“)func main(){客户端:= redis.NewClient(&redis.Options {Addr:” localhost:6379“,})得分:= Leaderboard.NewRedisLeaderBoard (“太空侵略者”,客户)scores.Set(“ Tehsis”,100)scores.Set(“ 0xBunny”,10)scores.Set(“ Plaurino”,50)top2:= scores.Ge