An open API service indexing awesome lists of open source software.

https://github.com/chinaarjun/devtools

Golang开发者工具集合,快速实现mysql转struct、json转struct
https://github.com/chinaarjun/devtools

devtools go golang

Last synced: about 1 year ago
JSON representation

Golang开发者工具集合,快速实现mysql转struct、json转struct

Awesome Lists containing this project

README

          

[English](./README.md) | [中文](./README_zh.md)

# devTools - golang programmer's tool
> The original intention of the tool is to minimize repetitive work

## Effect preview
> json to golang struct
![img](./asset/json.png)
> mysql to golang struct
![img](./asset/mysql.png)

## What functions are there?
``` go
r.GET("/base64", contoller.Base64, middleware.UsageCount)
r.GET("/image2base64", contoller.Image2Base64, middleware.UsageCount)
r.GET("/tinyimg", contoller.TinyImage, middleware.UsageCount)
r.GET("/hash", contoller.Hash, middleware.UsageCount)
r.GET("/file-hash", contoller.FileHash, middleware.UsageCount)
r.GET("/ip", contoller.IPInfo, middleware.UsageCount)
r.GET("/json", contoller.JSONView, middleware.UsageCount)
r.GET("/number", contoller.Number, middleware.UsageCount)
r.GET("/placeholder", contoller.Placeholder, middleware.UsageCount)
r.GET("/qrcode", contoller.QRCode, middleware.UsageCount)
r.GET("/regex", contoller.Regex, middleware.UsageCount)
r.GET("/timestamp", contoller.Timestamp, middleware.UsageCount)
r.GET("/color", contoller.Color, middleware.UsageCount)
r.GET("/aes", controller.AES, middleware.UsageCount)
r.GET("/des", controller.DES, middleware.UsageCount)
r.GET("/rsa", contoller.RSA, middleware.UsageCount)
r.GET("/morse", contoller.Morse, middleware.UsageCount)
r.GET("/url", contoller.URL, middleware.UsageCount)
r.GET("/unicode", contoller.Unicode, middleware.UsageCount)
r.GET("/json2go", contoller.JSON2GO, middleware.UsageCount)
r.GET("/json2xml", contoller.JSON2XML, middleware.UsageCount)
r.GET("/json2yaml", contoller.JSON2YAML, middleware.UsageCount)
r.GET("/pdf2img", contoller.PDF2IMG, middleware.UsageCount)
```

## Pack
> go build main.go
> command-line-arguments
> .\main.go:57:7: undefined: InitRouter

> Compile 64-bit executable programs for Mac and Linux platforms under Windows:
* $ SET CGO_ENABLED=0 SET GOOS=darwin3 SET GOARCH=amd64 go build main.go
* $ SET CGO_ENABLED=0 SET GOOS=linux SET GOARCH=amd64 go build main.go
* $ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build ./src/main.go

## refer to
* [tools](https://github.com/wangyiwy/oktools)
* [mysql](https://github.com)

## License

[MIT](https://github.com/ChinaArJun/devTools/blob/master/LICENSE)