example

package
v0.0.0-...-5685e45 Latest Latest
Warning

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

Go to latest
Published: May 18, 2015 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {

	// Id documentation line
	Id int64 `db:"id" json:"id"` // Id comment

	// UserId documentation line
	UserId int `db:"user_id" json:"user_id"` // UserId comment

	// Title documentation line
	Title string `db:"title" json:"title"` // Title comment

	// Body documentation line
	Body string `db:"body" json:"body"` // Body comment

}

*

*
* Comment -
*
* Multiple line
* documentations
* about this Comment type
*

type Post

type Post struct {

	// Id documentation line
	Id int64 `db:"id" json:"id" foo:"bar"` // Id comment

	// UserId documentation line
	UserId int `db:"user_id" json:"user_id" foo:"-,omitempty"` // UserId comment

	// Title documentation line
	Title string `db:"title" json:"title" foo:"bar"` // Title comment

	// Body documentation line
	Body string `db:"body" json:"body" foo:"-,omitempty"` // Body comment

}

Post -

Multiple line documentations about this Post type

type User

type User struct {

	// Id documentation line
	Id int `db:"id" json:"id"` // Id comment

	// Name documentation line
	Name string `db:"name" json:"name"` // Name comment

	// Email documentation line
	Email string `db:"email" json:"email"` // Email comment

	// Password documentation line
	Password string `db:"password" json:"-"` // Password comment

}

*

User -

Multiple line
documentations
about this User type

Jump to

Keyboard shortcuts

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