Skip to content

got error unsupported data type: &[] #6532

Closed Answered by Codedwells
Codedwells asked this question in Q&A
Discussion options

You must be logged in to vote

The error was caused by using []string as a type in Prompt model Tags field. Here is a more comprehensive answer
I'm still new to Go so I was not aware you cannot use that type directly in a GORM model

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Codedwells
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant