data

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: BSD-2-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blog

type Blog struct {
	Id    int64
	Owner *User
	Posts []*Post
}

func NewBlog

func NewBlog() *Blog

type Comment

type Comment struct {
	Id      int64
	Owner   *User
	Content string
}

type Post

type Post struct {
	Id       int64
	Owner    *User
	BlogId   int64
	Content  string
	Comments []*Comment
}

type User

type User struct {
	Id        int64
	LoginName string
	DispName  string
}

func NewUser

func NewUser(id int64, loginName string, dispName string) *User

Jump to

Keyboard shortcuts

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