gotest3

package
v0.0.0-...-b9f7e5e Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintNames

func PrintNames()

PrintNames 打印学生姓名

Example

检测乱序输出

package main

import (
	"github.com/chen-huicheng/GSWGo/learngo/gotest3"
)

func main() {
	gotest3.PrintNames()
}
Output:

Jim
Bob
Tom
Sue

func SayGoodbye

func SayGoodbye()

SayGoodbye 打印两行字符串

Example

检测多行输出

package main

import (
	"github.com/chen-huicheng/GSWGo/learngo/gotest3"
)

func main() {
	gotest3.SayGoodbye()
}
Output:

Hello,
goodbye

func SayHello

func SayHello()

SayHello 打印一行字符串

Example

检测单行输出

package main

import (
	"github.com/chen-huicheng/GSWGo/learngo/gotest3"
)

func main() {
	gotest3.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