Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSingleProject ¶
func CreateSingleProject(c *fiber.Ctx) error
It will create a project with incremented id.
func DeleteProject ¶
func DeleteProject(c *fiber.Ctx) error
func GetSingleProject ¶
func GetSingleProject(c *fiber.Ctx) error
func UpdateSingleProject ¶
func UpdateSingleProject(c *fiber.Ctx) error
Types ¶
type SerialProject ¶
type SerialProject struct {
Projects []SingleProject `json:"projects" gorm:"foreignKey:ID"`
}
all projects serializer
type SingleProject ¶
type SingleProject struct { gorm.Model ID int32 `gorm:"primaryKey;autoIncrement:True;" json:"id"` Title string `json:"title"` Desciption string `json:"desc"` ProgrammingLanguage string `json:"programming_language"` Stars int32 `gorm:"default:null" json:"stars"` Forks int32 `gorm:"default:null" json:"forks"` LastUpdated string `json:"last_updated"` Link string `json:"link"` }
Click to show internal directories.
Click to hide internal directories.