xxx.go xxx_unit test and code of test.go are open. The code is not in gopath and the project root set by idea.
Gopath:/users/ZYJ/go project root:/users/ZYJ/study/demogo source file:/users/ZYJ/study/demo/go/SRC/xxx_ test.go
xxx.go xxx_test.go is stored separately xxx_test.go compilation error
Go test XXX executed by golang IDE_test.go runs as file by default and does not import dependent files. You need to actively import dependencies
Usually: the project is in gopath or project root directory, and the dependency can be found normally
go test -v xxxx.go xxxx_test.go
Golang ide multiple selections for quick operation
- [Solved] Failed to resolve: com.serenegiant:common:1.5.20
- Vue Report Error #NULL! :no such file or directory,chmod….. [email protected] **\css- Beautify.js
- [Solved] ambiguous import: found package github.com/spf13/cobra/cobra in multiple modules
- [Solved] panic: proto: duplicate enum registered: raftpb.EntryType
- [Solved] cannot find package “go.opentelemetry.io/otel/api/trace“ in any of
- [Solved] go cobra Error: required flag(s) “pkg-name” not set
- [GO] The entry file under the main package in golang calls other go file functions and appears undefined
- Maven package error: [WARNING] The POM for xxx is missing, no dependency inform
- How to Solve Docker Run Error: standard_init_linux.go:219: exec user process caused: exec format error
- package golang.org/x/net/XXX: unrecognized import path “golang.org/x/net/xxx“…
- [Solved] There are test failures. Please refer to D:\Java_study\springboot\springboot-sugon-3\target\surefire-reports for the individual test results.
- Analysis of npm error ENOTFOUND npm ERR! network request to https://npm.***.com/*** failed and the role of the .npmrc file
- NPM Install Error: npm ERR! ERESOLVE unable to resolve dependency tree
- [Go] Testing when solving go test: warning: no tests to run
- The SDK of Android webrtc compiled with Ninja – C out / release command reported an error, and the Android NDK processing method could not be found
- AAPT: error: attribute cardBackgroundColor (aka com.x.x:cardBackgroundColor) not found.
- [Solved] Maven log jar package conflict error: Class path contains multiple SLF4J bindings
- C# Error: Import “google/protobuf/timestamp.proto“ was not found or had errors. [How to Solve]
- Execute an error under pytest cmd make sure your test modules/packages have valid Python names.
- Prompt unknown error in pom.xml of Maven project