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
- Host: GitHub
- URL: https://github.com/chinaarjun/devtools
- Owner: ChinaArJun
- License: mit
- Created: 2020-06-18T07:03:29.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-01-12T14:55:20.000Z (over 1 year ago)
- Last Synced: 2025-04-30T03:49:31.915Z (about 1 year ago)
- Topics: devtools, go, golang
- Language: JavaScript
- Homepage: https://tools.zhequtao.com
- Size: 18.2 MB
- Stars: 29
- Watchers: 2
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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

> mysql to golang struct

## 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)