comment_type

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalid = errors.New("invalid enumeration type")

Functions

func ErrorV

func ErrorV(v string) error

func Is

func Is(s string) bool

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

Jump to

Keyboard shortcuts

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