database

package
v0.0.0-...-067fca3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datastore

type Datastore interface {
	AddTask(task Task) error
	Close()
}

Datastore interface is exactly what it says on the tin.

The API separates what can be stored from how it is stored.

type Task

type Task struct {
	ID   int    `json:"id"`
	Text string `json:"text"`
}

func (Task) String

func (t Task) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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