基本字符串拼接错误

veiky · 2019-04-28 12:00:43 · 881 次点击

你的意思是打印结果里没有原生字符串内容吗?

#4
更多评论
polaris
社区,需要你我一同完善!

没看出有啥问题

#1
appid := env1.Get("APPID")
fmt.Printf("type of appid is %T, len of appid is %d\n", appid, len(appid))
secret := env1.Get("SECRET")
fmt.Printf("type of secret is %T, len of secret is %d\n", secret, len(secret))
url := `https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=`+appid+`&secret=`+secret
fmt.Println(url)

image.png

#2