github.com/fananchong/cstruct-go@v0.0.0-20220616060855-b65d9a2f2e17/common.go (about) 1 package cstruct 2 3 import "errors" 4 5 var ( 6 ErrNil = errors.New("cstruct: Marshal called with nil") 7 ) 8 9 type IStruct interface { 10 } 11 12 // slice 元素类型为指针时,是否忽略nil 13 var OptionSliceIgnoreNil = false