golang格式化代码

fmt包可以

输出到面板上:

fmt.Printf

不输出到面板仅仅返回字符串

fmt.Sprintf

返回的是字符串

原文地址:https://www.cnblogs.com/xuweiqiang/p/12332461.html