diff --git a/gotenv.go b/gotenv.go index 7fe03ff..d961355 100644 --- a/gotenv.go +++ b/gotenv.go @@ -26,9 +26,11 @@ const ( ) // Byte order mark character -var bomUTF8 = []byte("\xEF\xBB\xBF") -var bomUTF16LE = []byte("\xFF\xFE") -var bomUTF16BE = []byte("\xFE\xFF") +var ( + bomUTF8 = []byte("\xEF\xBB\xBF") + bomUTF16LE = []byte("\xFF\xFE") + bomUTF16BE = []byte("\xFE\xFF") +) // Env holds key/value pair of valid environment variable type Env map[string]string diff --git a/scanner_test.go b/scanner_test.go index 977dc6c..c39336d 100644 --- a/scanner_test.go +++ b/scanner_test.go @@ -9,7 +9,6 @@ import ( ) func TestScanner(t *testing.T) { - type testCase struct { name string in string