mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
comment update
This commit is contained in:
@ -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.
|
||||
|
||||
@ -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"}
|
||||
|
||||
Reference in New Issue
Block a user