File tree 4 files changed +24
-2
lines changed
4 files changed +24
-2
lines changed Original file line number Diff line number Diff line change
1
+ package main
2
+
3
+ import "fmt"
4
+
5
+ func main () {
6
+ fmt .Println ("Listen on 3000" )
7
+ }
Original file line number Diff line number Diff line change
1
+ ../js/endpoints.yaml
Original file line number Diff line number Diff line change @@ -135,8 +135,8 @@ if (!fs.existsSync(destDir)) {
135
135
fs . mkdirSync ( destDir , { recursive : true } ) ;
136
136
}
137
137
138
+ createApp ( destDir , argv . lang , config ) ;
138
139
if ( argv . lang === 'js' ) {
139
- createApp ( destDir , argv . lang , config ) ;
140
140
createEndpoints ( destDir , routesFile , config ) ;
141
141
createPackageJson ( destDir , 'package.json' ) ;
142
142
}
@@ -148,5 +148,12 @@ if (argv.lang === 'js') {
148
148
to install its dependencies and
149
149
export DB_NAME=db DB_USER=user DB_PASSWORD=secret
150
150
npm start
151
- afteward to run it` ) ;
151
+ afteward to run` ) ;
152
+ } else if ( argv . lang === 'go' ) {
153
+ console . info ( `Use
154
+ go run app.go
155
+ or
156
+ go build -o app
157
+ ./app
158
+ to build and run it` )
152
159
}
Original file line number Diff line number Diff line change
1
+ package main
2
+
3
+ import "fmt"
4
+
5
+ func main () {
6
+ fmt .Println ("Listen on 3000" )
7
+ }
You can’t perform that action at this time.
0 commit comments