v2

package
v0.0.0-...-e336ece Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 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 Awesome

type Awesome struct {
	ID        string
	Message   string
	Score     float64
	Confirmed bool
}

func NewAwesome

func NewAwesome(id string, message string, score float64, confirmed bool) *Awesome

NewAwesome creates a new Instance of Awesome.

func NewAwesomeFromJSON

func NewAwesomeFromJSON(jsonData []byte) (awesome *Awesome)

NewAwesomeFromJSON creates a new Instance of Awesome from JSON.

func (*Awesome) ToJSON

func (a *Awesome) ToJSON(pretty bool) ([]byte, error)

ToJSON marshalls Awesome to JSON.

Jump to

Keyboard shortcuts

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