add some flags for customize the log settings (#817)

This commit is contained in:
Cyclinder
2022-04-11 23:22:48 +08:00
committed by GitHub
parent 588ee8f192
commit 6bcb6bf403
10 changed files with 338 additions and 22 deletions

View File

@@ -166,3 +166,13 @@ func (r *Result) String() string {
}
return fmt.Sprintf("%sDNS:%+v", str, r.DNS)
}
// Int returns a pointer to an int
func Int(i int) *int {
return &i
}
// Bool returns a pointer to a bool.
func Bool(b bool) *bool {
return &b
}