govlc编译到windows并隐藏cmdGOOS=windows GOARCH=amd64 go build -ldflags="-H windowsgui" -o test.exe wails编译到windowswails build -platform windows/amd64 -o test.exe

实现代码界面定义type AppGUI struct { baseDir string // 文件目录 songs []string // 歌曲集合 curSong *MusicEntry // 当前歌曲 currentSongName *widget.Label // 当前曲目名称 progress *widget.ProgressBar // 播放进度 consumedTime *widget.Label // 已用时间 remainedTime *widget.Label // 剩余时间 playBtn *widget.Button // 播放 paused bool // 是否暂停标志 nextBtn

依赖库# 安装工具pkg sudo apt install pkg-config # 安装 alsa 开发库 sudo apt-get install libalsa-ocaml-dev 主要代码package main import ( "log" "os" "time" "github.com/faiface/beep" "github.com/faiface/beep/mp3" "github.com/faiface/beep/speaker" ) func main() { f, err := os.Open("./Lame_Drivers_-_01_-_Frozen_Egg.mp3") if err != nil { log.Fatal(err) } streamer, format, err := mp3.Decode(f)

依赖库github.com/u2takey/ffmpeg-go实现代码package main import ( "fmt" "github.com/gofrs/uuid" "github.com/google/logger" ffmpeg "github.com/u2takey/ffmpeg-go" "path/filepath" "strings" ) func InFormat1(target string, str_array []string) bool { for _, element := range str_array { if target == element { return true } } return false } //提取MP3 func ExtractMp3(inputVideoPath, out

设置代理#http代理 git config --global http.proxy 'socks5://127.0.0.1:1086' #https代理 git config --global https.proxy 'socks5://127.0.0.1:1086'取消代理#取消http代理 git config --global --unset http.proxy #取消https代理 git config --global --unset https.proxy