Skip to content

Commit

Permalink
language map
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwelin committed Feb 10, 2020
1 parent 94071cd commit b485d71
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ type TmplData struct {
var allowedAPIProtocols = []string{"rest", "websocket"}
var allowedRestAPIEndpoints = []string{"regional", "edge", "private"}

// Usage to-do
var languages = map[string][]string{
"node": []string{"index.js", "package.json"},
"java": []string{"App.java", "pom.xml"},
"python": []string{"app.py", "requirements.txt"},
"go": []string{"main.go"},
}

func createDir(path string) error {
err := os.MkdirAll(path, os.ModePerm)
if err != nil {
Expand Down

0 comments on commit b485d71

Please sign in to comment.