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,多态,单表继承)

Go goph

Go Goph 模块 github地址:https://github.com/melbahja/goph go开发封装的 ssh client 模块 Features Easy to use and simple API. Supports known hosts by default. Supports connections

Go boltdb

GO 文件数据库boltdb github地址: https://github.com/etcd-io/bbolt https://github.com/boltdb/bolt 由于作者个人能力有限,宣布不再维护,建议使用社区维护的bbolt 参考:https://zhua

lvm

LVM Logical Volume Management 逻辑卷管理 优势: 在线扩展/缩减存储空间/整合琐碎空间 支持快照 Device Mapper设备映射 lvm组织方式: 真实存储设备 --- pv(物理卷) --- vg