易百教程

26、如何在不打印的情况下格式化字符串?

应该使用以下命令格式化字符串而不打印:

return fmt.Sprintf ("at %v, %s" , e.When , e.What )