modelgen

package
v0.0.0-...-efaf3d2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewV

func NewV[T V]() T

Types

type C

type C[T any] struct {
	V T
}

type Event

type Event struct {
	Greeter Greeter // <- adding a Greeter field
}

func NewEvent

func NewEvent(g Greeter) Event

func (Event) Start

func (e Event) Start()

type Greeter

type Greeter struct {
	Message Message // <- adding a Message field
}

func NewGreeter

func NewGreeter(m Message) Greeter

func (Greeter) Greet

func (g Greeter) Greet() Message

type Message

type Message struct {
	Msg string
	V   int
}

func NewMessage

func NewMessage(v int) Message

type V

type V interface {
	int | float32
}

Jump to

Keyboard shortcuts

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