package
Version:
v0.0.0-...-385762f
Opens a new window with list of versions in this module.
Published: May 1, 2021
License: GPL-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func AppendWithSlice(slice, data []byte) []byte
func GetAddArr() (result []int, err error)
func NewSyncBuffer() error
go存在两种分配对象的方式,new | make
new 创建一个内存对象的引用地址,即指针引用,并非初始化对象
GO传递数组的时候是一个值引用,并非指针的引用,值引用会copy数组所有的元素(深拷贝)
可以考虑是指针,但是GO不惯用,而是使用分片来取代
func IsMyOOPType(v1 interface{}) (*MyOOP, bool)
类型断言
func IsMyOOPType2(v1 interface{}) (*MyOOP, bool)
type SyncedBuffer struct {
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.