GraphQL API and utilities for the rpdata project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
404 B

  1. package schema
  2. //go:generate go-bindata -ignore=\.go -pkg=schema -o=bindata.go ./...
  3. import "bytes"
  4. // String gets the schema
  5. func String() string {
  6. buf := bytes.Buffer{}
  7. for _, name := range AssetNames() {
  8. b := MustAsset(name)
  9. buf.Write(b)
  10. // Add a newline if the file does not end in a newline.
  11. if len(b) > 0 && b[len(b)-1] != '\n' {
  12. buf.WriteByte('\n')
  13. }
  14. }
  15. return buf.String()
  16. }