-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Hidayat Hamir
committed
Feb 6, 2024
1 parent
897b2c1
commit a861deb
Showing
5 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package explain | ||
|
||
import "github.com/spf13/cobra" | ||
|
||
// CLI is cobra command used for create new project. | ||
func CLI(cmd *cobra.Command, args []string) { | ||
Explain() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package explain | ||
|
||
import "fmt" | ||
|
||
func Explain() { | ||
fmt.Println(explainText) | ||
} | ||
|
||
var explainText = ` | ||
├── cmd/ Initial stage of the application will run. | ||
├── internal/ Core module of the application and contains the implementation of various business logic. | ||
│ ├── controller/ This module is only to gather input (REST/gRPC/console/etc) and pass input as request to service. | ||
│ │ ├── http/ | ||
│ │ ├── grpc/ | ||
│ ├── service/ This module contain business logic, this module get input request from controller, this module use repository for things related to persistence. | ||
│ ├── repository/ This module only for things related to persistence (CRUD database/redis/etc). | ||
├── go.mod | ||
└── go.sum | ||
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ package version | |
import "fmt" | ||
|
||
func Version() { | ||
fmt.Println("v0.0.6") | ||
fmt.Println("v0.0.7") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters