mirzaakhena / gogen Goto Github PK
View Code? Open in Web Editor NEWClean Architecture Code Generator and Framework
License: MIT License
Clean Architecture Code Generator and Framework
License: MIT License
I do this in my project directory,
go get github.com/mirzaakhena/gogen
go install $GOPATH/src/github.com/mirzaakhena/gogen/
but result an error.
stat /src/github.com/mirzaakhena/gogen: directory not found
Am I missing something? Should i clone this repo to $GOPATH/src/github.com/mirzaakhena/gogen/ ?
Environment:
Ubuntu 20.04
go 1.16.6
I tried to create controller using gogen controller restapi CreateUser
and it produced an error ERROR : open usecase/CreateUser/inport.go: no such file or directory
.
This is happening because when creating usecase using gogen command will generate lowcase directory name.
When i tried gogen controller restapi createuser
, it's success
screenshot:
Hi. It's very nice~!. I have a question.
How to do test or make a mock??
Is there a command to create a basic structure directory?
I think it will help a lot for creating a backbone project structure instead of creating one by one.
return &controller{
UsecaseRegisterer: gogen.NewBaseController(),
ControllerStarter: server.NewGracefullyShutdown(log, router, address),
Router: router,
log: log,
cfg: cfg,
jwtToken: jwtToken,
}
di situ manggil file shared/infrastructure/server/gracefully_shutdown.go
sedangkan folder server tidak ada ketika saya lakukan command gogen crud
di dalam folder \gogen\shared\infrastructure hanya ada :
jadi ketika di run dapat eror :
domain_test\controller\userapi\controller.go:8:2: package test/shared/infrastructure/server is not in std (C:\Program Files\Go\src\test\shared\infrastructure\server)
Hello
There is this command in the document, but when it is called, it shows the following error
Command openapi is not recognized
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.