mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
remove type ValueFunc from package gcache
This commit is contained in:
@ -9,7 +9,6 @@ package gdebug
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strings"
|
||||
)
|
||||
@ -72,10 +71,6 @@ func StackWithFilters(filters []string, skip ...int) string {
|
||||
// Custom filtering.
|
||||
filtered = false
|
||||
for _, filter := range filters {
|
||||
// Ignore test files.
|
||||
if strings.HasSuffix(filepath.Base(file), "_test.go") {
|
||||
break
|
||||
}
|
||||
if filter != "" && strings.Contains(file, filter) {
|
||||
filtered = true
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user