Code Monkey home page Code Monkey logo

gogen's Issues

Bug with `gogen error` Command

i tried to create error enum using gogen error ..., its successfully created the enum in apperror/error_enum.go but in the terminal produced 2021/08/12 10:30:19 cmd.Run() failed with exec: "goimports": executable file not found in $PATH

screenshot:

  1. terminal
    image
  2. apperror/error_enum.go
    image

How to install?

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

Bug `gogen controller controllername UsecaseName` Command

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:

  1. error
    image
  2. directory structure
    image

Command for Create Basic Directory

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.

Gogen Crud shared/infrastructure/server not found

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 :

  • cache
  • database
  • logger
  • messaging
  • remoting
  • token

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)

gogen openapi command not work

Hello
There is this command in the document, but when it is called, it shows the following error

Command openapi is not recognized

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.