cards

package
v0.0.0-...-0226d05 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: GPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

type Card struct {
	Title string `json:"title"`
	Text  string `json:"text"`
	Done  bool   `json:"done"`
}

Card is a item in todo list

type CardSerializer

type CardSerializer struct {
	Card
	Errors map[string][]string `json:"-"`
}

CardSerializer is card serializer

func NewCardSerializer

func NewCardSerializer() *CardSerializer

NewCardSerializer is the initializer of a card serializer

func (CardSerializer) Save

func (p CardSerializer) Save()

Save persists a card Not implemented yet

func (*CardSerializer) Validate

func (p *CardSerializer) Validate() bool

Validate verify if content of a card is valid

Jump to

Keyboard shortcuts

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