Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeSliceWithPreAlloc ¶
func MakeSliceWithPreAlloc() []int
MakeSliceWithPreAlloc 通过预分配Slice的存储空间构造
func PrintNames ¶
func PrintNames()
PrintNames 打印学生姓名
Example ¶
检测乱序输出
package main import ( "github.com/stevenlee87/go-daily-lib/expert_programming/chapter7/7.1_quick_start/gotest" ) func main() { gotest.PrintNames() }
Output: Jim Bob Tom Sue
func SayGoodbye ¶
func SayGoodbye()
SayGoodbye 打印两行字符串
Example ¶
检测多行输出
package main import ( "github.com/stevenlee87/go-daily-lib/expert_programming/chapter7/7.1_quick_start/gotest" ) func main() { gotest.SayGoodbye() }
Output: Hello, goodbye
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.