类库

推荐大家直接使用社区类库,下面是一些我们项目中比较常用的

  1. 内存 cache

    https://github.com/patrickmn/go-cache

  2. LRU cache

    https://github.com/golang/groupcache

  3. Converts a mysql table into a golang struct

    https://github.com/Shelnutt2/db2struct

  4. Struct copy to struct, map convert into struct

    https://github.com/mitchellh/mapstructure

  5. MessagePack encoding for Golang

    https://github.com/vmihailenco/msgpack

  6. Type convert

    https://github.com/spf13/cast

不可避免的,yago 也会封装一些自己的类库,下面就为大家一一介绍这些类库。

results matching ""

    No results matching ""