add warnings about codegen

This commit is contained in:
Tit Petric
2018-07-06 10:47:31 +00:00
parent bc1f3aeb4c
commit ab943146d3
31 changed files with 399 additions and 0 deletions
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `channel.go`, `channel.util.go` or `channel_test.go` to
implement your API calls, helper functions and tests. The file `channel.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"net/http"
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `channel.go`, `channel.util.go` or `channel_test.go` to
implement your API calls, helper functions and tests. The file `channel.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"net/http"
)
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `channel.go`, `channel.util.go` or `channel_test.go` to
implement your API calls, helper functions and tests. The file `channel.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"github.com/go-chi/chi"
"net/http"
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `channel.go`, `channel.util.go` or `channel_test.go` to
implement your API calls, helper functions and tests. The file `channel.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"time"
)
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `message.go`, `message.util.go` or `message_test.go` to
implement your API calls, helper functions and tests. The file `message.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"net/http"
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `message.go`, `message.util.go` or `message_test.go` to
implement your API calls, helper functions and tests. The file `message.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"net/http"
)
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `message.go`, `message.util.go` or `message_test.go` to
implement your API calls, helper functions and tests. The file `message.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"github.com/go-chi/chi"
"net/http"
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `message.go`, `message.util.go` or `message_test.go` to
implement your API calls, helper functions and tests. The file `message.go`
is only generated the first time, and will not be overwritten if it exists.
*/
type (
// Messages
Message struct {
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `organisation.go`, `organisation.util.go` or `organisation_test.go` to
implement your API calls, helper functions and tests. The file `organisation.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"net/http"
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `organisation.go`, `organisation.util.go` or `organisation_test.go` to
implement your API calls, helper functions and tests. The file `organisation.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"net/http"
)
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `organisation.go`, `organisation.util.go` or `organisation_test.go` to
implement your API calls, helper functions and tests. The file `organisation.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"github.com/go-chi/chi"
"net/http"
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `organisation.go`, `organisation.util.go` or `organisation_test.go` to
implement your API calls, helper functions and tests. The file `organisation.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"time"
)
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `.go`, `.util.go` or `_test.go` to
implement your API calls, helper functions and tests. The file `.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"github.com/go-chi/chi"
)
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `team.go`, `team.util.go` or `team_test.go` to
implement your API calls, helper functions and tests. The file `team.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"net/http"
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `team.go`, `team.util.go` or `team_test.go` to
implement your API calls, helper functions and tests. The file `team.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"net/http"
)
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `team.go`, `team.util.go` or `team_test.go` to
implement your API calls, helper functions and tests. The file `team.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"github.com/go-chi/chi"
"net/http"
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `team.go`, `team.util.go` or `team_test.go` to
implement your API calls, helper functions and tests. The file `team.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"time"
)
+2
View File
@@ -1,5 +1,7 @@
package {package}
{load warning.tpl}
import (
"net/http"
+2
View File
@@ -1,5 +1,7 @@
package {package}
{load warning.tpl}
import (
"net/http"
)
+2
View File
@@ -1,5 +1,7 @@
package {package}
{load warning.tpl}
import (
"net/http"
"github.com/go-chi/chi"
+2
View File
@@ -1,5 +1,7 @@
package {package}
{load warning.tpl}
import (
"github.com/go-chi/chi"
)
+2
View File
@@ -1,5 +1,7 @@
package {package}
{load warning.tpl}
{if !empty($imports)}
import (
{foreach ($imports as $import)}
+14
View File
@@ -0,0 +1,14 @@
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `{name|strtolower}.go`, `{name|strtolower}.util.go` or `{name|strtolower}_test.go` to
implement your API calls, helper functions and tests. The file `{name|strtolower}.go`
is only generated the first time, and will not be overwritten if it exists.
*/
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `user.go`, `user.util.go` or `user_test.go` to
implement your API calls, helper functions and tests. The file `user.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"net/http"
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `user.go`, `user.util.go` or `user_test.go` to
implement your API calls, helper functions and tests. The file `user.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"net/http"
)
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `user.go`, `user.util.go` or `user_test.go` to
implement your API calls, helper functions and tests. The file `user.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"github.com/go-chi/chi"
"net/http"
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `user.go`, `user.util.go` or `user_test.go` to
implement your API calls, helper functions and tests. The file `user.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"time"
)
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `websocket.go`, `websocket.util.go` or `websocket_test.go` to
implement your API calls, helper functions and tests. The file `websocket.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"net/http"
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `websocket.go`, `websocket.util.go` or `websocket_test.go` to
implement your API calls, helper functions and tests. The file `websocket.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"net/http"
)
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `websocket.go`, `websocket.util.go` or `websocket_test.go` to
implement your API calls, helper functions and tests. The file `websocket.go`
is only generated the first time, and will not be overwritten if it exists.
*/
import (
"github.com/go-chi/chi"
"net/http"
+15
View File
@@ -1,5 +1,20 @@
package sam
/*
Hello! This file is auto-generated from `docs/src/spec.json`.
For development:
In order to update the generated files, edit this file under the location,
add your struct fields, imports, API definitions and whatever you want, and:
1. run [spec](https://github.com/titpetric/spec) in the same folder,
2. run `./_gen.php` in this folder.
You may edit `websocket.go`, `websocket.util.go` or `websocket_test.go` to
implement your API calls, helper functions and tests. The file `websocket.go`
is only generated the first time, and will not be overwritten if it exists.
*/
type (
// Websocket
Websocket struct {