Skip to content

Commit

Permalink
fix: rename gql schema struct to Schema
Browse files Browse the repository at this point in the history
  • Loading branch information
prakasa1904 committed Sep 11, 2024
1 parent aff4dff commit 19b7ec2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gql/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ import (
"io/fs"
)

type Graphql struct {
type Schema struct {
fs fs.FS
}

func NewSchema(fs fs.FS) *Graphql {
e := &Graphql{
func NewSchema(fs fs.FS) *Schema {
e := &Schema{
fs: fs,
}

return e
}

func (p *Graphql) Query(name string) (string, error) {
func (p *Schema) Query(name string) (string, error) {
px, err := p.fs.Open(name)
if err != nil {
return "", fmt.Errorf("[gql.Query] - error on p.fs.Open: %w", err)
Expand Down

0 comments on commit 19b7ec2

Please sign in to comment.