found packages main (main.go) and test (test.go)

epiphany·2023년 12월 19일

💻 문제 상황

💡 해결 방법

여러 패키지가 동일한 디렉토리에 있어서 발생한 문제였음

현재 내 디렉토리 구조

GO/
├── main.go
├── test.go
├── go.mod
└── bin/

변경한 디렉토리 구조

  • 이렇게 변경하면 해결 완료
GO/
├── main.go
├── test/
│   └── test.go
├── go.mod
└── bin/
profile
iamda.tistory.com 이사 중

0개의 댓글