database

package
v0.0.0-...-8c9c5ac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deletetask

func Deletetask(id string) error

func InitDB

func InitDB() error

Types

type Task

type Task struct {
	gorm.Model
	Name   string `json:"name"`
	Status string `json:"status"`
}

func CreateTask

func CreateTask(name string, status string) (Task, error)

func GetallTasks

func GetallTasks() ([]Task, error)

func Gettask

func Gettask(id string) (Task, error)

func Updatetask

func Updatetask(name string, status string, id string) (Task, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL