Go语言编程快速入门:多语言文本
P10 go09 - 多语言文本
声明字符串
peace := "peace"
var peact = "peact"
package main
import "fmt"
func main() {
var str1 = "I am a porgramer \n test"
var str2 = `I am a programer \n test.`
fmt.Println(str1, str2)
}
类型别名
type byte = unit8
type rune = int32