flagtest

package
v4.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package flagtest 用于生成测试用的命令行参数

Index

Constants

This section is empty.

Variables

View Source
var Flags []*Flag

Flags 解析后的参数值

Functions

func Main

func Main(m *testing.M)

Main 供测试的 TestMain 调用

Types

type Flag

type Flag struct {
	DBName, DriverName string
}

Flag 参数对象

Jump to

Keyboard shortcuts

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