Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenericSum1 ¶
范型函数,范例2 【这种方式如果类型很多,代码可读性不好,所以定义一个Number接口代替】
Types ¶
type FileWriter ¶
type FileWriter[T any] struct { }
func (FileWriter[T]) Write ¶
func (t FileWriter[T]) Write(data T)
type ProductInfo ¶
type ProductInfo struct { }
func (ProductInfo) Name ¶
func (t ProductInfo) Name() string
Click to show internal directories.
Click to hide internal directories.