enumDefault

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Foo

type Foo int
const (
	FooA Foo = iota
	FooB
	FooC
)

func (Foo) MarshalText

func (e Foo) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler by returning the textual representation of Foo.

func (Foo) String

func (e Foo) String() string

String returns the textual representation of Foo.

func (*Foo) UnmarshalText

func (e *Foo) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler by expecting the textual representation of Foo.

type R

type R struct {
	EnumField Foo `json:"enumField"`
}

func (R) AvroRecord

func (R) AvroRecord() avrotypegen.RecordInfo

AvroRecord implements the avro.AvroRecord interface.

Jump to

Keyboard shortcuts

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