post

package
v0.0.0-...-23cd6c9 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Post

type Post struct {
	Title      string   `json:"title" validate:"required"`
	Tags       []string `json:"tags" validate:"required,min=1,max=10"`
	Categories []string `json:"categories" validate:"required,min=1,max=10"`
	Body       string   `json:"body" validate:"required"`
	// contains filtered or unexported fields
}

func New

func New(m string) Post

func (Post) Method

func (p Post) Method() string

func (Post) UrlCategories

func (p Post) UrlCategories() []string

func (Post) UrlTags

func (p Post) UrlTags() []string

func (Post) UrlTitle

func (p Post) UrlTitle() string

func (Post) Validate

func (p Post) Validate() error

Jump to

Keyboard shortcuts

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