generics
import "github.com/princjef/gomarkdoc/testData/generics"
Index
func Func[S int | float64](s S) S
Func is a generic function.
Generic is a generic struct.
type Generic[T any] struct {
Field T
}
func NewGeneric[T any](param T) Generic[T]
NewGeneric produces a new Generic struct.
func (Generic[T]) Method
func (g Generic[T]) Method()
Method is a method of a generic type.
Generated by gomarkdoc