diff --git a/g/g_func.go b/g/g_func.go index bfc575101..78c54497b 100644 --- a/g/g_func.go +++ b/g/g_func.go @@ -29,11 +29,18 @@ func Wait() { // Dump dumps a variable to stdout with more manually readable. // -// 打印变量 +// 格式化打印变量. func Dump(i...interface{}) { gutil.Dump(i...) } +// Export exports a variable to string with more manually readable. +// +// 格式化导出变量. +func Export(i...interface{}) string { + return gutil.Export(i...) +} + // Throw throws a exception, which can be caught by Catch function. // It always be used in TryCatch function. //