gotest

package
v0.0.0-...-27abbc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(a int, b int) int

func MakeSliceWithPreAlloc

func MakeSliceWithPreAlloc() []int

func MakeSliceWithoutAlloc

func MakeSliceWithoutAlloc() []int

func PrintNames

func PrintNames()
Example

检测乱序输出

PrintNames()
Output:

Jim
Bob
Tom
Suex

func SayGoodbye

func SayGoodbye()
Example

检测多行输出

SayGoodbye()
Output:

Hello,
goodbye

func SayHello

func SayHello()
Example

检测单行输出

SayHello()
Output:

Hello World

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL