标签:style blog color ar sp div on log bs
package main import( "fmt" ) type TestInterface interface{} func main(){ a:=65 // char A ‘s ascii code b:=float64(a) c:=string(a) fmt.Println(a) fmt.Println(b) fmt.Println(c) // A //fmt.Println(c==nil)//error var ti TestInterface fmt.Println(ti == nil) fmt.Println("convert int to string vs string‘s empty", c=="") //false var s string fmt.Println("convert int to string vs string‘s empty", s=="") // true }
标签:style blog color ar sp div on log bs
原文地址:http://www.cnblogs.com/yanyuge/p/4100040.html