package clipboard import ( "github.com/atotto/clipboard" ) // Write 将文本复制到剪切板 func Write(text string) error { return clipboard.WriteAll(text) }