Closed
Description
There is already builtin functions for print, print
and println
, but for formatted data, we must import fmt
for Printf
function, so I propose to add printf
function without import fmt
each time.
func printf(f string, args ...Type)
For string build and formatted, we can also add string print functions.
func sprint(args ...Type) string
func sprintf(f string, ...Type) string
func sprintln(args ...Type) string
or the single format
builtin function
func format(f string, arg ...Type) string