로그 추가

This commit is contained in:
2023-06-26 23:24:49 +09:00
parent 9590de2e00
commit d17c53c79c
3 changed files with 13 additions and 6 deletions

View File

@ -120,6 +120,7 @@ type houstonClient struct {
func unmarshal[T any](val *T, src map[string]string) {
argval := reflect.ValueOf(val)
logger.Println("operation receive :", argval.Type().Name(), src)
for i := 0; i < argval.Elem().Type().NumField(); i++ {
if !argval.Elem().Type().Field(i).IsExported() {
continue