Documentation ¶
Index ¶
- func AppendString() string
- func DeepCompare()
- func GetArr() (result []int64)
- func GetInt2String(num int) string
- func GetSquare()
- func GetString2Int(num string) (int, error)
- func GetTimeString() string
- func GoInterface()
- func GoSlice()
- func PrintToString(s GoString)
- type Country
- type GoString
- type Region
- type Shape
- type Square
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepCompare ¶
func DeepCompare()
这个对象可以是内建数据类型,数组,结构体,map……我们在复制结构体的时候,当我们需要比较两个结构体中的数据是否相同时, 我们需要使用深度比较,而不是只是简单地做浅度比较
func GoInterface ¶
func GoInterface()
Types ¶
type Shape ¶
接口完整性检查
Click to show internal directories.
Click to hide internal directories.