All Projects → hellokaton → agon

hellokaton / agon

Licence: Apache-2.0 license
🦉 my golang utilities, log json config and other

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to agon

at tools
Source repo for at_commons and at_utils on pub.dev
Stars: ✭ 22 (+83.33%)
Mutual labels:  utils, commons
OrganizeMediaFiles
a collection of Python scripts that help you organize media files into a directory tree "year/month" based on metadata , using exiftool
Stars: ✭ 24 (+100%)
Mutual labels:  utils
JavaBaseUtils
Java常用工具类包
Stars: ✭ 22 (+83.33%)
Mutual labels:  utils
commons-jexl
Apache Commons Jexl
Stars: ✭ 136 (+1033.33%)
Mutual labels:  commons
anyangdp-frame
基于mybatis,springboot,tk.mybatis等框架二次开发,实现crud,controller,service,dao。
Stars: ✭ 16 (+33.33%)
Mutual labels:  utils
esa-commons
Common lib of ESA Stack.
Stars: ✭ 51 (+325%)
Mutual labels:  utils
skeletoid
Bootstrapping and Utils code for Android applications 🤖made at Mindera 💛
Stars: ✭ 24 (+100%)
Mutual labels:  utils
util
封装了一些Java常用的功能
Stars: ✭ 19 (+58.33%)
Mutual labels:  utils
table2ascii
Python library for converting lists to fancy ASCII tables for displaying in the terminal and on Discord
Stars: ✭ 31 (+158.33%)
Mutual labels:  utils
jh-weapp-demo
微信小程序项目- 实现一些常用效果、封装通用组件和工具类
Stars: ✭ 60 (+400%)
Mutual labels:  utils
spotify-tensorflow
Provides Spotify-specific TensorFlow helpers
Stars: ✭ 118 (+883.33%)
Mutual labels:  utils
vue-functional-data-merge
Vue.js util for intelligently merging data passed to functional components.
Stars: ✭ 100 (+733.33%)
Mutual labels:  utils
lobase
Port of the OpenBSD userland to Linux.
Stars: ✭ 89 (+641.67%)
Mutual labels:  utils
commons.openshift.org
Repository for OpenShift Commons Community Site
Stars: ✭ 31 (+158.33%)
Mutual labels:  commons
packetevents
PacketEvents is a powerful packet library. Our packet wrappers are efficient and easy to use. We support many protocol versions. (1.8+)
Stars: ✭ 235 (+1858.33%)
Mutual labels:  utils
react-semantic-render
Semantic helper components for rendering content with React.
Stars: ✭ 13 (+8.33%)
Mutual labels:  utils
utils
⚡ A collection of common functions but with better performance, less allocations and less dependencies created for Fiber.
Stars: ✭ 21 (+75%)
Mutual labels:  utils
mmt
margins merkle tree | grass roots collective crypto speculation
Stars: ✭ 15 (+25%)
Mutual labels:  commons
java-sdk
一些常用的java sdk和工具类(日期工具类,分布式锁,redis缓存,二叉树,反射工具类,线程池,对称/非对称/分段加解密,json序列化,http工具,雪花算法,字符串相似度,集合操作工具,xml解析,重试Retry工具类,Jvm监控等)
Stars: ✭ 26 (+116.67%)
Mutual labels:  utils
sweekt
🍭 Some sugar to sweeten Kotlin development.
Stars: ✭ 35 (+191.67%)
Mutual labels:  utils

agon

agon 这个名字起源于希腊神话中的竞赛之神,胜利女神。这个项目存储了Golang开发常用的类库。

安装

go get github.com/biezhi/agon

使用

输出彩色文本

color.Println(color.Red, "|| Hello World")
color.Println(color.Green, "|| Hello World")
color.Println(color.Yellow, "|| Hello World")
color.Println(color.Purple, "|| Hello %s", "jack")

日志

//log.ConfigLog("test.log")
log.Info("Hello Rose")
log.Debug("Hello %s", "jack")
log.Warn("Hello %s", "jack")
log.Trace("Hello %s", "jack")
log.Error("Hello %s", "jack")

JSON解析

加载一个配置文件

configMap := LoadJson("config.json")
fmt.Println(configMap["api_key"])

字符串转换为JSON对象

str := "{\"name\":\"jack\", \"age\": 20}"
json := json.NewJson(str)
fmt.Println(json.Get("age"))
fmt.Println(json.Get("name"))
fmt.Println(json.ToString())

类型转换为JSON

p := Person{Name:"Rose", Age:20}
fmt.Println(json.Stringify(p))
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].