utils.go/typeName() and formatter.go/getTipeName() have been merged in formatter.go/typeName()

This commit is contained in:
Celestino Amoroso 2024-06-05 05:42:37 +02:00
parent 457a656073
commit 974835a8ef

View File

@ -217,17 +217,3 @@ func ForAll[T, V any](ts []T, fn func(T) V) []V {
} }
return result return result
} }
func typeName(v any) (s string) {
if v != nil {
if typer,ok:=v.(Typer);ok {
s = typer.TypeName()
}else{
s=fmt.Sprintf("%T", v)
}
} else {
s = "nil"
}
return
}