Visit my blog here
theghostmac / bankie.go Goto Github PK
View Code? Open in Web Editor NEWa simple banking app with Go, PostgreSQL, and JWT
a simple banking app with Go, PostgreSQL, and JWT
Visit my blog here
See the code below for the problem:
make run
# output:
Running the application...
package github.com/theghostmac/bankie.go/cmd/app
imports github.com/theghostmac/bankie.go/api/rest
imports github.com/theghostmac/bankie.go/application/authentication
imports github.com/theghostmac/bankie.go/api/rest: import cycle not allowed
make: *** [run] Error 1
The error message "import cycle not allowed" occurs when there is a circular dependency between packages. In your case, there seems to be an import cycle between the packages github.com/theghostmac/bankie.go/api/rest and github.com/theghostmac/bankie.go/application/authentication.
To resolve this issue, you need to refactor your code to remove the circular dependency. Here are a few suggestions:
Review the import statements in both packages (api/rest and application/authentication) and check if there is a direct or indirect circular reference between them.
Identify the dependencies and try reorganizing the code to eliminate the circular dependency.
Consider creating a separate package that both api/rest and application/authentication can depend on to share common functionality instead of having a direct circular dependency.
I need to create a shared package for api/rest
and application/authentication
.
Making a new UserRepository requires updating rest.NewAPIServe
to accept a new Store value. Adding this has not been possible because of the way I structured the repository. Help needed!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.