scripts

Posted by 夏泽民

composer update 报 composer clearcache sh: composer: command not found Script composer clearcache handling the pre-update-cmd event returned with error code 127 干掉这一行,问题解决 “scripts”: { “pre-update-cmd”: “composer clearcache”, } Could you post your entire composer.json file ?



JSON转换成Go的struct

Posted by 夏泽民

https://mholt.github.io/json-to-go/ https://github.com/mholt/json-to-go https://github.com/mailru/easyjson https://github.com/xeipuuv/gojsonschema 在左侧粘贴一个JSON结构,右侧将生成相应的Go类型,您可以将其粘贴到程序中。 json {

“code”: “FRONTEND_REQ”,

“name”: “AddUserAddressApi”,

“status”: 200,

“success”: true,

“msg”: “”,

“version”: “v0.1”,

“data”: {

} } 生成的struct type AutoGenerated struct { Code string json:"code" Name string json:"name" Status int json:"status" Success bool json:"success" Msg string json:"msg" Version string json:"version" Data struct { } json:"data" } http://json2struct.mervine.net/ https://github.com/usthooz/json2go



easyJson

Posted by 夏泽民

golang easyJson 包的使用 easyjson 是用来快速进行json序列化与反序列化的工具包,通过给我们要进行序列化的struct生成方法来实现不通过反射进行json序列化,对比golang原有json工具包,性能能够提高3倍以上。



Markdown

Posted by 夏泽民

我们经常会在一些 Markdown 解析库的描述中看到类似这样的话:兼容 CommonMark,支持 GFM 扩展等。



tcp

Posted by 夏泽民

https://gocn.vip/topics/10626



Search

Popular posts

Anything in here will be replaced on browsers that support the canvas element

Recent posts

This blog is maintained by 夏泽民

Get in touch with me at 465474307@qq.com

Subscribe to our mailing list

* indicates required