Структура каталогов:
ЦСИ SRC/упак SRC/упак/t1.go SRC/упак/t1_test.go
t1.go
package pkg
import (
"fmt"
)
func SayHI(){
fmt.Println("this is t1")
}
t1_test.go
package pkg
import (
"testing"
)
func TestXYZ(t *testing.T) {
SayHI()
}
Вызвать тест go из командной строки в каталоге dir src/pkg
go test t1_test.go
ошибка: . /t 1_test.go:8: undefined: SayHI FAIL command-line-arguments [build failed]
но функция есть
спасибо за любые подсказки