huma icon indicating copy to clipboard operation
huma copied to clipboard

Update min Go version for tutorial

Open DanRoscigno opened this issue 8 months ago • 2 comments

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.

DanRoscigno avatar Jun 06 '24 16:06 DanRoscigno