// Author: simon (ynwdlxm@163.com) // Date: 2025/9/29 18:23 // Desc: package utils func ToCmdLine(cmd ...string) [][]byte { args := make([][]byte, len(cmd)) for i, s := range cmd { args[i] = []byte(s) } return args } func ToCmdLine2(commandName string, args ...[]byte) [][]byte { result := make([][]byte, len(args)+1) result[0] = []byte(commandName) copy(result[1:], args) return result }