2022-03-01から1ヶ月間の記事一覧
type Note struct { gorm.Model English string Japanese string Description string Tags []Tag } type Tag struct { gorm.Model NoteID uint Name string } こんな感じの構造体でモデルを作っていたときに、TagのNameでNoteを絞り込みたかった。やり方を調…
type Note struct { gorm.Model English string Japanese string Description string Tags []Tag } type Tag struct { gorm.Model NoteID uint Name string } こんな感じの構造体でモデルを作っていたときに、TagのNameでNoteを絞り込みたかった。やり方を調…