mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
add one more project structure recommendation
This commit is contained in:
21
_examples/project/main.go
Normal file
21
_examples/project/main.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/username/project/cmd"
|
||||
)
|
||||
|
||||
var (
|
||||
buildRevision string
|
||||
buildTime string
|
||||
)
|
||||
|
||||
func main() {
|
||||
app := cmd.New(buildRevision, buildTime)
|
||||
if err := app.Execute(); err != nil {
|
||||
fmt.Println(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user