This commit is contained in:
2019-11-19 14:20:18 +09:00
parent afc59ebb97
commit 3d9ee5a1eb
3 changed files with 26 additions and 22 deletions

View File

@ -3,7 +3,6 @@ package arn
import (
"encoding/json"
"errors"
"flag"
"fmt"
"os"
"path"
@ -311,11 +310,6 @@ func ListItemStatusName(status string) string {
}
}
// IsTest returns true if the program is currently running in the "go test" tool.
func IsTest() bool {
return flag.Lookup("test.v") != nil
}
// PanicOnError will panic if the error is not nil.
func PanicOnError(err error) {
if err != nil {