huma
huma copied to clipboard
Update min Go version for tutorial
With Go < 1.22 I get this error when running the tutorial:
../../go/pkg/mod/github.com/danielgtaylor/huma/[email protected]/formdata.go:173:21:
undefined: slices.Concat
I think slices.Concat is new in 1.22. With 1.22.4 the tutorial works fine.
I am a tech writer by day, using Go at night to write tests of the docs that I write. I could be completely wrong about the need for 1.22, but here is my reference: https://blog.carlana.net/post/2024/golang-slices-concat/
Summary by CodeRabbit
-
Documentation
- Updated the required version of Go for Huma from 1.20 to 1.22 in the installation tutorial.