Giter VIP home page Giter VIP logo

gulu's Introduction

Wide

Go 语言常用工具库,这个轱辘还算圆!




        

✨ 功能

文件操作 gulu.File
  • 获取文件大小
  • 判断路径是否存在
  • 判断文件是否是图片
  • 按内容判断文件是否是可执行二进制
  • 判断文件是否是目录
  • 复制文件
  • 复制目录
Go 语言 gulu.Go
  • 获取 Go API 源码目录路径
  • 判断指定路径是否在 Go API 源码目录下
  • 获取格式化工具名 ["gofmt", "goimports"]
  • 获取 $GOBIN 下指定可执行程序名的绝对路径
日志记录 gulu.Log
  • 提供可指定日志级别的日志记录器
网络相关 gulu.Net
  • 获取本机第一张网卡的地址
操作系统 gulu.OS
  • 判断是否是 Windows
  • 获取当前进程的工作目录
  • 获取用户 Home 目录路径
panic 处理 gulu.Panic
  • 包装 recover() 提供更好的报错日志格式
随机数 gulu.Rand
  • 随机字符串
  • 随机整数
返回值相关 gulu.Ret
  • 提供普适返回值结构
Rune 相关 gulu.Rune
  • 判断 rune 是否为数字或字母
  • 判断 rune 是否为字母
字符串相关 gulu.Str
  • 字符串是否包含在字符串数组中
  • 求最长公共子串
Zip 压缩解压gulu.Zip
  • Zip 压缩和解压

🗃 案例

  • Pipe:一款小而美的博客平台,专为程序员设计
  • Wide:一款基于 Web 的 Go 语言 IDE,随时随地玩 golang
  • BND:一款图形界面的百度网盘不限速下载器,支持 Windows、Linux 和 Mac
  • 协慌网:专注编程问答汉化

如果你也在使用 Gulu,欢迎通过 PR 将你的项目添加到这里。

💝 贡献

Gulu 肯定有一些不足之处:

  • 代码不够优美
  • 文档不够清晰
  • 功能不够完善
  • 可能存在缺陷
  • ……

希望大家能和我们一起来完善该项目,无论是提交需求建议还是代码改进,我们都非常欢迎!

🏘️ 社区

📄 授权

Gulu 使用 Apache License, Version 2 开源协议。

🙏 鸣谢

gulu's People

Contributors

88250 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.