package
Version:
v1.23.0
Opens a new window with list of versions in this module.
Published: Jan 6, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type A struct {
Name string `json:"name" desc:"Name of the person"`
}
type Explain struct {
Example Example `json:"example"`
}
L Example is not allowed, since Example is interface,
and interface cannot have methods implemented as Visitor pattern requires
List is a list of elements
type ListOf[T any] struct{}
type ListOf2[T1, T2 any] struct {
Data T1
ListOf ListOf[T1] `json:"list_of"`
}
ListOf2 is a list of 2 elements
Source Files
¶
Click to show internal directories.
Click to hide internal directories.