candidate

package
v0.0.0-...-e5ce005 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Candidate

type Candidate struct {
	Name  string `json:"name"`
	Code  string `json:"code" gorm:"uniqueIndex;primaryKey"`
	Party string `json:"party"`
}

func All

func All() []Candidate

func GetByCode

func GetByCode(code string) (*Candidate, error)

func New

func New(name string, party string) *Candidate

Jump to

Keyboard shortcuts

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