mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-08 14:42:27 +08:00
refactor: make errInvalidStruct exported, change error.go to struct_internal.go
This commit is contained in:
7
structutil/struct_internal.go
Normal file
7
structutil/struct_internal.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package structutil
|
||||
|
||||
import "fmt"
|
||||
|
||||
func errInvalidStruct(v any) error {
|
||||
return fmt.Errorf("invalid struct %v", v)
|
||||
}
|
||||
Reference in New Issue
Block a user