Skip to content

Commit

Permalink
Fix Firebase Model Generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdaniell committed Mar 22, 2021
1 parent 1ea6e64 commit a216c5b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion cmd/golang/golang_api/go_content_files/api_models_files.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ func CreateModelsPackage(projectName, projectDatabase string) {
}

func writeEntityModelFile(projectName, projectDatabase string){
var contentFirebase = `// Entity model used to receive request and send JSON response, is used on authentication controller.
var contentFirebase = `package models
// Entity model used to receive request and send JSON response, is used on authentication controller.
type Entity struct {
ID string ` + "`" + `json:"_id"` + "`" + `
Name string ` + "`" + `json:"name, omitempty"` + "`" + `
Expand Down

0 comments on commit a216c5b

Please sign in to comment.