Skip to content

sangjinsu/go-project-cli

Repository files navigation

go-project-cli

Golang Project Folder and File Creation CLI


Install

pip install go-project-cli

Command

new

  • create package with Controller, Service, Model, Repository

  • projectcli new [package name]

    projectcli new [package name]
  • Examples of executions

      .
      └── package_name/
        ├── controllers/
        │   └── controller.go
        ├── services/
        │   └── service.go
        ├── repositories/
        │   └── repository.go
        └── models/
            └── model.go
    

generate

  • create semantic folders and files such as controllers, services, and models
  • projectcli generate [schematic] [package name]
  • Examples of executions
    • projectcli generate co [package name]
        .
        └── controllers/
          └── controller.go
      

semantics

name alias description
controller co Generate a controller declaration.
service s Generate a service declaration.
model m Generate a model declaration.
repository r Generate a repository declaration.

About

Go 프로젝트 폴더 및 파일 생성 CLI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages