Dan Anglin
9e0f5af2e6
- Use go generate and a third party tool called jsonschemagen to auto-generate the CV data type from the JSON schema. - Update the schema by changing number to integer to ensure that the integers are set to the correct type. - Refactor some code.
3 lines
154 B
Go
3 lines
154 B
Go
package internal
|
|
|
|
//go:generate jsonschemagen -s ../schema/cv.schema.json -o cv/cv.go -n cv -r CV -c "Code generated by jsonschemagen." -c "DO NOT EDIT."
|