farmerly

package
v0.0.0-...-d58de2a Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Category

func Category(w http.ResponseWriter, r *http.Request)

func Index

func Index(w http.ResponseWriter, r *http.Request)

func ViewGen

func ViewGen(w http.ResponseWriter, r *http.Request)

Types

type Categories

type Categories struct {
	Id   int
	Name string
	// contains filtered or unexported fields
}

func FetchCategories

func FetchCategories() (res []Categories)

type Posts

type Posts struct {
	Id       int
	Title    string
	Body     string
	Category string
}

func GetPosts

func GetPosts() (res []Posts)

type UserFromDatabase

type UserFromDatabase struct {
	Id         int
	Name       string
	Category   string
	UniqueHash string
}

type Users

type Users struct {
	Id       int
	Name     string
	Category string
	// contains filtered or unexported fields
}

func FetchUsers

func FetchUsers() (res []Users)

Jump to

Keyboard shortcuts

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