From 19b7ec2302475f794c8de3f4ef1bdde9bf4c10a4 Mon Sep 17 00:00:00 2001 From: Prakasa Date: Thu, 12 Sep 2024 06:36:03 +0700 Subject: [PATCH] fix: rename gql schema struct to Schema --- gql/schema.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gql/schema.go b/gql/schema.go index 3c3c99d..b7b8a7b 100644 --- a/gql/schema.go +++ b/gql/schema.go @@ -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)