Documentation ¶
Overview ¶
Package datafiller implements function for randomly filling passed datastructures by mock sample data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fill ¶
func Fill(i interface{})
Function Fill takes a pointer to variable of any type and fills the variable by with sample data. It panics if the passed value is not a pointer.
func RandStringBytesMaskImpr ¶
会产生大量的丢弃的case,造成重选和浪费。rand.Int63会产生63bit的随机数 如果我们把它分成6份,那么一次就可以产生10个6bit的随机数。这样就减少了浪费
Types ¶
Click to show internal directories.
Click to hide internal directories.