structでdbとjson定義

package models

import "time"

type Todo struct {  
    Id          int       `db:"id" json:"id"`
    Description string    `db:"description" json:"description"`
    CreatedAt   time.Time `db:"created_at" json:"created_at"`
}