000、GO之特别语法糖

01、使用...打散参数

 1 package main
 2 
 3 import (
 4     "fmt"
 5 )
 6 
 7 func main() {
 8     s := []byte("hello ")//强转
 9     s = append(s, "world"...)//向byte切片追加,...表示将字符串打散成byte切片
10     fmt.Println(s)
11 }
原文地址:https://www.cnblogs.com/geniushuangxiao/p/12825873.html