Go storm

Go Storm storm是一个使用BoltDB的上层orm框架 https://juejin.cn/post/7031361355856740389 数据查看工具: https://github.com/br0xen/boltbrowser 驱动: https://github.com/asdine/storm 下载boltbrowser go install github.com/br0xen/boltbrowser@latest 使用lib go get github.com/asdine/storm 一、基本使用 初

Go pinyin

Go 汉字转拼音库 汉语拼音转换工具 Go 版。 1、安装 go get -u github.com/mozillazg/go-pinyin 安装cli工具 go get -u github.com/mozillazg/go-pinyin/cmd/pinyin $ pinyin 中国人 zhōng guó rén 2、简单使用 package main import ( "fmt" "github.com/mozillazg/go-pinyin" ) func main() { hans

Go exec

os/exec 系统内执行命令 1、查找命令所在的路径 func findCommandPath(str string) (string, error) { path, err := exec.LookPath(str) if err != nil { return "", err } return path, nil } 2、CombinedOutput组合输出,标准正确错误输

Go gorm

Gorm 官网:https://gorm.io/ 特性: 全功能 ORM 关联 (Has One,Has Many,Belongs To,Many To Many,多态,单表继承)