titel

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Code auto-generated; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Titel

type Titel int

Titel is a title

const (
	// DR is a PhD
	DR      Titel = iota + 1
	PROF          // PROF is a professor
	PROF_DR       // PROF_DR is a professor with PhD title
)

func (Titel) MarshalJSON

func (r Titel) MarshalJSON() ([]byte, error)

MarshalJSON is generated so Titel satisfies json.Marshaler.

func (*Titel) Scan added in v0.2.3

func (r *Titel) Scan(src interface{}) error

Scan sets r to the enum value represented by src. It implements the sql.Scanner interface to be useable by sql drivers when reading from database.

func (Titel) String

func (i Titel) String() string

func (*Titel) UnmarshalJSON

func (r *Titel) UnmarshalJSON(data []byte) error

UnmarshalJSON is generated so Titel satisfies json.Unmarshaler.

func (Titel) Value added in v0.2.3

func (r Titel) Value() (driver.Value, error)

Value returns the string representation of r or an error, if no string representation exists. It implements the sql.Valuer interface to be useable by sql drivers when storing enums.

Jump to

Keyboard shortcuts

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