comment update

This commit is contained in:
John Guo
2021-05-25 22:16:55 +08:00
parent 5903eb8ceb
commit fab6c4048d
2 changed files with 3 additions and 3 deletions

View File

@ -42,13 +42,13 @@ func init() {
}
}
// CallerPath returns the function name and the absolute file path along with its line
// Caller returns the function name and the absolute file path along with its line
// number of the caller.
func Caller(skip ...int) (function string, path string, line int) {
return CallerWithFilter("", skip...)
}
// CallerPathWithFilter returns the function name and the absolute file path along with
// CallerWithFilter returns the function name and the absolute file path along with
// its line number of the caller.
//
// The parameter <filter> is used to filter the path of the caller.

View File

@ -40,7 +40,7 @@ var (
"false": {},
}
// Priority tags for Map*/Struct* functions.
// StructTagPriority defines the default priority tags for Map*/Struct* functions.
// Note, the "gconv", "param", "params" tags are used by old version of package.
// It is strongly recommended using short tag "c" or "p" instead in the future.
StructTagPriority = []string{"gconv", "param", "params", "c", "p", "json"}