multipass

​ Multipass 是一个轻量虚拟机管理器,是由 Ubuntu 运营公司 Canonical 所推出的开源项目。运行环境支持 Linux、Windows、macOS。在不同的操作系统上,使用的

mac

Mac 优化 修改默认的shell # shells 记录了可设置的shell,需要/opt/homebrew/bin/bash加到文件中 cat /etc/shells # List of acceptable shells for chpass(1). # Ftpd will not

wsl

WSL2 windows上到linux(windows sub system for linux ) 一、安装 wsl 2 如果系统中带有 wsl,则需要升级到 wsl 2。 以管理员身份打开 PowerShe

Go yaml

Go 读取yaml格式配置文件 package config import ( "fmt" "io/ioutil" "gopkg.in/yaml.v3" ) type Service struct { Host string `json:"host" yaml:"host"` Port string `json:"port" yaml:"port"` } type MyConfig struct { Service Service `json:"service" yaml:"service"` } var Config *MyConfig func LoadConfig(filepath string) { if filepath == "" { return } // 读yaml文件 config, err := ioutil.ReadFile(filepath) if