Format

Strings
Both Server and Client
Both Mobile and PC

Output a string with parameters

Declaration

func Format(content string, params List<object>) string
go

Parameters

Input

Name Type Description
Content String Use the %v placeholder to represent a parameter. The number of %v and the number of parameters must be consistent.
Params List The parameter list involved in the output, needs to be consistent with the number of %v in the format description

Return

Type Description
String Output string