You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
229 B
Go
20 lines
229 B
Go
6 years ago
|
package config
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
"strings"
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
test_file = `
|
||
|
`
|
||
|
)
|
||
|
|
||
|
//判断是否在测试环境下使用
|
||
|
func IsRunTesting() bool {
|
||
|
if len(os.Args) > 1 {
|
||
|
return strings.HasPrefix(os.Args[1], "-test")
|
||
|
}
|
||
|
return false
|
||
|
}
|