Print format and value type cannot be inconsistent
packagemainimport"fmt"funcFmtNum(valinterface{})string{returnfmt.Sprintf("%d",val)}funcmain(){a:="woqoo"fmt_a:=FmtNum(a)fmt.Println(fmt_a)b:=10fmt_b:=FmtNum(b)fmt.Println(fmt_b)c:=10.1fmt_c:=FmtNum(c)