Code Monkey home page Code Monkey logo

asdlei99 / naza Goto Github PK

View Code? Open in Web Editor NEW

This project forked from q191201771/naza

0.0 1.0 0.0 163 KB

🍀 Go basic library. || Go语言基础库。包含日志,[]byte 内存池,断言,string,字节切片,一致性哈希,版本信息,大小端,原子操作,json,协程池,整型数组压缩,限速器,带宽计算,网络连接对象,文件批处理,对象唯一ID,md5,mock等内容。

License: MIT License

Go 97.26% Shell 2.74%

naza's Introduction


Go语言基础库





        


工程目录说明

pkg/                    ...... 源码包
    |-- nazalog/        ...... 日志库
    |-- slicebytepool/  ...... []byte 内存池
    |-- assert/         ...... 提供了单元测试时的断言功能,减少一些模板代码
    |-- nazastring/     ...... string 和 []byte 相关的操作
    |-- consistenthash/ ...... 一致性哈希
    |-- bininfo/        ...... 将编译时源码的 git 版本信息(当前 commit log 的 sha 值和 commit message),编译时间,Go 版本,平台打入程序中
    |-- bele/           ...... 提供了大小端的转换操作
    |-- nazaatomic/     ...... 原子操作
    |-- nazajson/       ...... json 操作
    |-- taskpool/       ...... 协程池
    |-- connection/     ...... 对 net.Conn 接口的二次封装
    |-- filebatch/      ...... 文件批处理操作
    |-- nazamd5/        ...... md5 操作
    |-- bitrate/        ...... 计算带宽
    |-- ratelimit/      ...... 限流器,令牌桶
    |-- ic/             ...... 将整型切片压缩成二进制字节切片
    |-- unique/         ...... 对象唯一 ID
    |-- fake/           ...... 实现一些常用的接口,辅助测试其它代码
demo/                   ...... 示例相关的代码
bin/                    ...... 可执行文件编译输出目录

依赖

无任何第三方依赖

项目名 naza 由来

本仓库主要用于存放我自己写的一些 Go 基础库代码。目前主要服务于我的另一个项目: lal

naza 即哪吒(正确拼音为 nezha,我女儿发音读作 naza,少一个字母,挺好~),希望本仓库以后能像三头六臂,有多种武器的哪吒一样,为我提供一个趁手的工具箱。

相关文档

联系我

欢迎扫码加我微信,进行技术交流或扯淡。

naza's People

Contributors

q191201771 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.