comment

package
v0.0.0-...-56a2066 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: BSD-3-Clause Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	Id        string
	Message   string
	Timestamp time.Time
	User      string
}

Comment is a struct containing a comment by a user on a given entity.

func New

func New(id, msg, user string) *Comment

Return a Comment instance.

func (*Comment) Copy

func (c *Comment) Copy() *Comment

Return a copy of the Comment.

func (*Comment) GobDecode

func (c *Comment) GobDecode(b []byte) error

See docs for gob.GobDecoder.

func (*Comment) GobEncode

func (c *Comment) GobEncode() ([]byte, error)

See docs for gob.GobEncoder.

func (*Comment) MarshalJSON

func (c *Comment) MarshalJSON() ([]byte, error)

See docs for json.Marshaler.

func (*Comment) UnmarshalJSON

func (c *Comment) UnmarshalJSON(b []byte) error

See docs for json.Unmarshaler.

Jump to

Keyboard shortcuts

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