From f27bc261cf51b9847d8c6ee0ce6982e966042d46 Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Thu, 10 Aug 2023 16:26:06 -0700 Subject: [PATCH] s/parmeter/parameter/ --- api/types.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/api/types.go b/api/types.go index 6a82ab49..393555ad 100644 --- a/api/types.go +++ b/api/types.go @@ -225,12 +225,12 @@ func (opts *Options) FromMap(m map[string]interface{}) error { // when JSON unmarshals numbers, it uses float64, not int field.SetInt(int64(t)) default: - log.Printf("could not convert model parmeter %v to int, skipped", key) + log.Printf("could not convert model parameter %v to int, skipped", key) } case reflect.Bool: val, ok := val.(bool) if !ok { - log.Printf("could not convert model parmeter %v to bool, skipped", key) + log.Printf("could not convert model parameter %v to bool, skipped", key) continue } field.SetBool(val) @@ -238,14 +238,14 @@ func (opts *Options) FromMap(m map[string]interface{}) error { // JSON unmarshals to float64 val, ok := val.(float64) if !ok { - log.Printf("could not convert model parmeter %v to float32, skipped", key) + log.Printf("could not convert model parameter %v to float32, skipped", key) continue } field.SetFloat(val) case reflect.String: val, ok := val.(string) if !ok { - log.Printf("could not convert model parmeter %v to string, skipped", key) + log.Printf("could not convert model parameter %v to string, skipped", key) continue } field.SetString(val) @@ -253,7 +253,7 @@ func (opts *Options) FromMap(m map[string]interface{}) error { // JSON unmarshals to []interface{}, not []string val, ok := val.([]interface{}) if !ok { - log.Printf("could not convert model parmeter %v to slice, skipped", key) + log.Printf("could not convert model parameter %v to slice, skipped", key) continue } // convert []interface{} to []string @@ -261,7 +261,7 @@ func (opts *Options) FromMap(m map[string]interface{}) error { for i, item := range val { str, ok := item.(string) if !ok { - log.Printf("could not convert model parmeter %v to slice of strings, skipped", key) + log.Printf("could not convert model parameter %v to slice of strings, skipped", key) continue } slice[i] = str