Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( All = []CommentType{ DoubleBackslash, Pound, } )
View Source
var ErrInvalid = errors.New("invalid enumeration type")
Functions ¶
Types ¶
type CommentType ¶
type CommentType string
const ( DoubleBackslash CommentType = "double_backslash" Pound CommentType = "pound" )
func Parse ¶
func Parse(v string) (CommentType, error)
func (CommentType) MarshalJSON ¶
func (t CommentType) MarshalJSON() ([]byte, error)
func (CommentType) MarshalYAML ¶
func (t CommentType) MarshalYAML() (interface{}, error)
func (CommentType) String ¶
func (t CommentType) String() string
func (*CommentType) UnmarshalJSON ¶
func (t *CommentType) UnmarshalJSON(data []byte) error
func (*CommentType) UnmarshalYAML ¶
func (t *CommentType) UnmarshalYAML(unmarshal func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.