Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sample ¶
func Sample(t SampleType) interface{}
Sample return sample interface. This is intended for testing unexported types in refutil package
Types ¶
type SampleType ¶
type SampleType uint
SampleType represent category for samples
const ( // SampleInt sample int type SampleInt SampleType = iota // SampleUint sample uint type SampleUint // SampleString sample string type SampleString // SampleStringPtr sample string pointer type SampleStringPtr // SampleStringNil sample string pointer type which is nil SampleStringNil // SampleStringSlice sample string slice type SampleStringSlice // SampleChanBool sample booelan chan type SampleChanBool // SampleEmptyZeroer sample zeroer struct type which is nil SampleEmptyZeroer // SamplePositiveZeroer sample zeroer struct type SamplePositiveZeroer // SampleZeroer sample zeroer struct type SampleZeroer // SampleStruct sample struct type SampleStruct )
Click to show internal directories.
Click to hide internal directories.