Move 'Code generated by' disclaimer up (#161)

`Code generated by` disclaimer should be at the top of the file, as it is demonstrated in [this article](https://go.dev/blog/generate) on The Go Blog.

The current placing breaks integration with some code formatters and linters which do no skip files generated by `genqlient`.
This commit is contained in:
Adam Babik
2021-12-20 10:04:13 -05:00
committed by GitHub
parent f80df6d4f1
commit f0c2ac17a9
51 changed files with 102 additions and 102 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
package main
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package main
import ( import (
"context" "context"
"time" "time"
+2 -2
View File
@@ -1,7 +1,7 @@
package {{.Config.Package}}
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package {{.Config.Package}}
{{.Imports}} {{.Imports}}
{{if and (ne .Config.ContextType "-") (ne .Config.ContextType "context.Context") }} {{if and (ne .Config.ContextType "-") (ne .Config.ContextType "context.Context") }}
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"time" "time"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"github.com/Khan/genqlient/graphql" "github.com/Khan/genqlient/graphql"
) )
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"github.com/Khan/genqlient/graphql" "github.com/Khan/genqlient/graphql"
"github.com/Khan/genqlient/internal/testutil" "github.com/Khan/genqlient/internal/testutil"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"github.com/Khan/genqlient/graphql" "github.com/Khan/genqlient/graphql"
"github.com/Khan/genqlient/internal/testutil" "github.com/Khan/genqlient/internal/testutil"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"github.com/Khan/genqlient/graphql" "github.com/Khan/genqlient/graphql"
) )
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"github.com/Khan/genqlient/graphql" "github.com/Khan/genqlient/graphql"
"github.com/Khan/genqlient/internal/testutil" "github.com/Khan/genqlient/internal/testutil"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"github.com/Khan/genqlient/graphql" "github.com/Khan/genqlient/graphql"
"github.com/Khan/genqlient/internal/testutil" "github.com/Khan/genqlient/internal/testutil"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"github.com/Khan/genqlient/graphql" "github.com/Khan/genqlient/graphql"
"github.com/Khan/genqlient/internal/testutil" "github.com/Khan/genqlient/internal/testutil"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"github.com/Khan/genqlient/graphql" "github.com/Khan/genqlient/graphql"
) )
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"github.com/Khan/genqlient/graphql" "github.com/Khan/genqlient/graphql"
) )
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"github.com/Khan/genqlient/graphql" "github.com/Khan/genqlient/graphql"
) )
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"github.com/Khan/genqlient/graphql" "github.com/Khan/genqlient/graphql"
"github.com/Khan/genqlient/internal/testutil" "github.com/Khan/genqlient/internal/testutil"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"github.com/Khan/genqlient/graphql" "github.com/Khan/genqlient/graphql"
"github.com/Khan/genqlient/internal/testutil" "github.com/Khan/genqlient/internal/testutil"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"github.com/Khan/genqlient/graphql" "github.com/Khan/genqlient/graphql"
"github.com/Khan/genqlient/internal/testutil" "github.com/Khan/genqlient/internal/testutil"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"github.com/Khan/genqlient/graphql" "github.com/Khan/genqlient/graphql"
"github.com/Khan/genqlient/internal/testutil" "github.com/Khan/genqlient/internal/testutil"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"github.com/Khan/genqlient/graphql" "github.com/Khan/genqlient/graphql"
"github.com/Khan/genqlient/internal/testutil" "github.com/Khan/genqlient/internal/testutil"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"github.com/Khan/genqlient/graphql" "github.com/Khan/genqlient/graphql"
) )
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
@@ -1,7 +1,7 @@
package queries
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package queries
import ( import (
"context" "context"
@@ -1,7 +1,7 @@
package queries
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package queries
import ( import (
"context" "context"
@@ -1,7 +1,7 @@
package queries
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package queries
import ( import (
"github.com/Khan/genqlient/internal/testutil" "github.com/Khan/genqlient/internal/testutil"
) )
@@ -1,7 +1,7 @@
package queries
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package queries
import ( import (
"context" "context"
@@ -1,7 +1,7 @@
package queries
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package queries
import ( import (
"context" "context"
@@ -1,7 +1,7 @@
package queries
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package queries
import ( import (
"context" "context"
@@ -1,7 +1,7 @@
package queries
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package queries
import ( import (
"github.com/Khan/genqlient/graphql" "github.com/Khan/genqlient/graphql"
) )
@@ -1,7 +1,7 @@
package mypkg
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package mypkg
import ( import (
"context" "context"
@@ -1,7 +1,7 @@
package queries
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package queries
import ( import (
"context" "context"
@@ -1,7 +1,7 @@
package mypkg
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package mypkg
import ( import (
"context" "context"
@@ -1,7 +1,7 @@
package mypkg
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package mypkg
import ( import (
"context" "context"
+2 -2
View File
@@ -1,7 +1,7 @@
package integration
// Code generated by github.com/Khan/genqlient, DO NOT EDIT. // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package integration
import ( import (
"context" "context"
"encoding/json" "encoding/json"