Browse Source
- fixed unit test bug - moved most of the docu to the github wikidependabot/npm_and_yarn/web/prismjs-1.21.0
9 changed files with 25 additions and 77 deletions
@ -1,20 +0,0 @@ |
|||||
package main |
|
||||
|
|
||||
import ( |
|
||||
"flag" |
|
||||
"io/ioutil" |
|
||||
"log" |
|
||||
"path/filepath" |
|
||||
|
|
||||
"github.com/maxibanki/golang-url-shortener/config" |
|
||||
"github.com/urakozz/go-json-schema-generator" |
|
||||
) |
|
||||
|
|
||||
func main() { |
|
||||
schemaPath := flag.String("path", filepath.Join("build", "schema.json"), "location of the converted schema") |
|
||||
flag.Parse() |
|
||||
schema := generator.Generate(&config.Configuration{}) |
|
||||
if err := ioutil.WriteFile(*schemaPath, []byte(schema), 755); err != nil { |
|
||||
log.Fatalf("could not write schema: %v", err) |
|
||||
} |
|
||||
} |
|
||||
Binary file not shown.
Loading…
Reference in new issue