空格对于缩进 url、sql 查询很有用,以使其更具可读性。有没有办法在 golang 编译时从 const 字符串中删除字符?
ex: (runtime version)
const url = `https://example.com/path?
attr1=test
&attr2=test
`
// this is the code to be replaced
urlTrim := strings.Replace(
strings.Replace(url, "\n", "", -1)
)
三国纷争
开心每一天1111
随时随地看视频慕课网APP
相关分类