1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-15 10:12:29 +08:00

add govet check to github action file

This commit is contained in:
dudaodong
2024-02-19 15:50:19 +08:00
parent 7ec2533b7a
commit fdf251ac98
3 changed files with 11 additions and 6 deletions

View File

@@ -121,6 +121,9 @@ func convertSlice(src reflect.Value, dst reflect.Value) error {
func convertMap(src reflect.Value, dst reflect.Value) error {
if src.Kind() != reflect.Map || dst.Kind() != reflect.Struct {
// if src.Kind() == reflect.Map {
// return convertMap(src, dst)
// } else
if src.Kind() == reflect.Interface {
return convertMap(src.Elem(), dst)
} else {