1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-04 16:50:41 +00:00

Update example

This commit is contained in:
Darren Shepherd
2017-11-10 21:50:42 -07:00
parent 816c6cf363
commit f0aa87928f
2 changed files with 22 additions and 31 deletions

View File

@@ -6,7 +6,6 @@ import (
"net/http"
"os"
"github.com/rancher/norman/generator"
"github.com/rancher/norman/server"
"github.com/rancher/norman/types"
)
@@ -37,10 +36,6 @@ func main() {
panic(err)
}
if err := generator.Generate("example_gen", Schemas); err != nil {
panic(err)
}
server, err := server.NewAPIServer(context.Background(), os.Getenv("KUBECONFIG"), Schemas)
if err != nil {
panic(err)