Skip to content

starfork/gostar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gostar

a generator for stargo

Installation

go install  github.com/starfork/gostar@latest

Usage

Set DB env info in .env.development or just by os.Args

example:

gostar gen|new -n=test -pfx=test_

If no error occurr you'll get this folders(files)


├── Makefile
├── cmd
│   └── main.go  
├── config
│   └── debug.json
├── internal
│   ├── codes
│   ├── consts
│   ├── logic
│   ├── repository
│   │   ├── mysql
│   │   └── repository.go
│   └── server
│       ├── handler.go
│       └── server_config.go
└── pkg
    ├── pb
    └── proto

Notice

It suposed your working dir like this below

├── apps # gateway - implementation of service
│   ├── app1
│   ├── app2
├── service # your services
│   ├── service1
│   ├── service2
├── go.work