single

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 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 Category

type Category struct {
	Id int32 `json:"id"`

	Name string `json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Category) GetName

func (c *Category) GetName() string

type Post

type Post struct {
	Id int32 `json:"id"`

	Name       string      `json:"name,omitempty"`
	Author     *User       `json:"author,omitempty"`
	Categories []*Category `json:"categories"`
	Tags       []*Tag      `json:"tags"`
	// contains filtered or unexported fields
}

func (*Post) GetName

func (p *Post) GetName() string

type Tag added in v0.1.5

type Tag struct {
	Id int32 `json:"id"`

	Name string `json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Tag) GetName added in v0.1.5

func (t *Tag) GetName() string

type User

type User struct {
	Id int32 `json:"id"`

	Name  string  `json:"name,omitempty"`
	Posts []*Post `json:"posts"`
	// contains filtered or unexported fields
}

func (*User) GetName

func (u *User) GetName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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