From d7313068fbb95829175fe108352b7b1e99e6fe9d Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Thu, 19 Jul 2018 17:58:45 +0200 Subject: small cleaning --- commands/new.go | 2 +- graphql/handler.go | 2 +- graphql/schema.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/new.go b/commands/new.go index fde944e9..09369fe4 100644 --- a/commands/new.go +++ b/commands/new.go @@ -55,7 +55,7 @@ func runNewBug(cmd *cobra.Command, args []string) error { err = newBug.Commit(repo) - fmt.Println(newBug.HumanId()) + fmt.Printf("%s created\n", newBug.HumanId()) return err diff --git a/graphql/handler.go b/graphql/handler.go index 4843fff9..7dbb7a0f 100644 --- a/graphql/handler.go +++ b/graphql/handler.go @@ -3,7 +3,7 @@ package graphql import "github.com/graphql-go/handler" func NewHandler() (*handler.Handler, error) { - schema, err := graphqlSchema() + schema, err := newGraphqlSchema() if err != nil { return nil, err diff --git a/graphql/schema.go b/graphql/schema.go index f8fb9768..e929fb44 100644 --- a/graphql/schema.go +++ b/graphql/schema.go @@ -2,7 +2,7 @@ package graphql import "github.com/graphql-go/graphql" -func graphqlSchema() (graphql.Schema, error) { +func newGraphqlSchema() (graphql.Schema, error) { rootQuery := graphql.ObjectConfig{ Name: "RootQuery", -- cgit