diff --git a/config/config.go b/config/config.go index a436ec0..e132523 100644 --- a/config/config.go +++ b/config/config.go @@ -80,7 +80,7 @@ func SetStructField(structPtr any, fieldName string, value string) error { } rv := reflect.ValueOf(structPtr) - if rv.Kind() != reflect.Ptr { + if rv.Kind() != reflect.Pointer { return fmt.Errorf("structPtr is not a pointer, it is %T", structPtr) } diff --git a/go.mod b/go.mod index 2a07d63..3f3588e 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/sil-org/pipedream-go -go 1.25.8 +go 1.25.10 require ( github.com/aws/aws-sdk-go-v2 v1.41.3 @@ -10,7 +10,7 @@ require ( github.com/google/go-cmp v0.7.0 github.com/kelseyhightower/envconfig v1.4.0 github.com/pkg/sftp v1.13.10 - golang.org/x/crypto v0.48.0 + golang.org/x/crypto v0.52.0 ) require ( @@ -27,5 +27,5 @@ require ( github.com/aws/aws-sdk-go-v2/service/sts v1.41.8 // indirect github.com/aws/smithy-go v1.24.2 // indirect github.com/kr/fs v0.1.0 // indirect - golang.org/x/sys v0.42.0 // indirect + golang.org/x/sys v0.45.0 // indirect ) diff --git a/go.sum b/go.sum index d23f92e..a629e00 100644 --- a/go.sum +++ b/go.sum @@ -46,9 +46,14 @@ github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOf github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= golang.org/x/crypto v0.48.0 h1:/VRzVqiRSggnhY7gNRxPauEQ5Drw9haKdM0jqfcCFts= golang.org/x/crypto v0.48.0/go.mod h1:r0kV5h3qnFPlQnBSrULhlsRfryS2pmewsg+XfMgkVos= +golang.org/x/crypto v0.52.0 h1:RMs7fP2rXdep0CftQlK8Uf+kibLm7qkCcradZWYz988= +golang.org/x/crypto v0.52.0/go.mod h1:1QgfPxDqh0T2M/elOJtp9RvuR95kVjir0e6/BvEmGbc= golang.org/x/sys v0.42.0 h1:omrd2nAlyT5ESRdCLYdm3+fMfNFE/+Rf4bDIQImRJeo= golang.org/x/sys v0.42.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= +golang.org/x/sys v0.45.0 h1:dO4czNzziLiiXplLQgBCEpCvXQ3dnkn0SdaZSYdQ+FY= +golang.org/x/sys v0.45.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= golang.org/x/term v0.40.0 h1:36e4zGLqU4yhjlmxEaagx2KuYbJq3EwY8K943ZsHcvg= golang.org/x/term v0.40.0/go.mod h1:w2P8uVp06p2iyKKuvXIm7N/y0UCRt3UfJTfZ7oOpglM= +golang.org/x/term v0.43.0 h1:S4RLU2sB31O/NCl+zFN9Aru9A/Cq2aqKpTZJ6B+DwT4= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/parcs/parcs_test.go b/parcs/parcs_test.go index c9f897c..42e6487 100644 --- a/parcs/parcs_test.go +++ b/parcs/parcs_test.go @@ -789,7 +789,7 @@ func (f roundTripFunc) RoundTrip(r *http.Request) (*http.Response, error) { func Test_GroupTransactions(t *testing.T) { var transactions []Transaction - for i := 0; i < 5; i++ { + for i := range 5 { testTransaction := cashSale testTransaction.TranID = strconv.Itoa(i)