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 16:04:13 +01: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.
package main
import (
"context"
"time"
+2 -2
View File
@@ -1,7 +1,7 @@
package {{.Config.Package}}
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package {{.Config.Package}}
{{.Imports}}
{{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.
package test
import (
"encoding/json"
"fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"encoding/json"
"fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"encoding/json"
"fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"encoding/json"
"fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"time"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"github.com/Khan/genqlient/graphql"
)
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"encoding/json"
"fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"github.com/Khan/genqlient/graphql"
"github.com/Khan/genqlient/internal/testutil"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"encoding/json"
"fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"encoding/json"
"fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"encoding/json"
"fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"encoding/json"
"fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"encoding/json"
"fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"github.com/Khan/genqlient/graphql"
"github.com/Khan/genqlient/internal/testutil"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"github.com/Khan/genqlient/graphql"
)
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"encoding/json"
"fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"encoding/json"
"fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"encoding/json"
"fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"encoding/json"
"fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"github.com/Khan/genqlient/graphql"
"github.com/Khan/genqlient/internal/testutil"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"github.com/Khan/genqlient/graphql"
"github.com/Khan/genqlient/internal/testutil"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"github.com/Khan/genqlient/graphql"
"github.com/Khan/genqlient/internal/testutil"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"github.com/Khan/genqlient/graphql"
)
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"github.com/Khan/genqlient/graphql"
)
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"github.com/Khan/genqlient/graphql"
)
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"github.com/Khan/genqlient/graphql"
"github.com/Khan/genqlient/internal/testutil"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"encoding/json"
"fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"github.com/Khan/genqlient/graphql"
"github.com/Khan/genqlient/internal/testutil"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"github.com/Khan/genqlient/graphql"
"github.com/Khan/genqlient/internal/testutil"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"encoding/json"
"fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"github.com/Khan/genqlient/graphql"
"github.com/Khan/genqlient/internal/testutil"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"encoding/json"
"fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"github.com/Khan/genqlient/graphql"
"github.com/Khan/genqlient/internal/testutil"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"encoding/json"
"fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"encoding/json"
"fmt"
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"github.com/Khan/genqlient/graphql"
)
@@ -1,7 +1,7 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"encoding/json"
"fmt"
@@ -1,7 +1,7 @@
package queries
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package queries
import (
"context"
@@ -1,7 +1,7 @@
package queries
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package queries
import (
"context"
@@ -1,7 +1,7 @@
package queries
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package queries
import (
"github.com/Khan/genqlient/internal/testutil"
)
@@ -1,7 +1,7 @@
package queries
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package queries
import (
"context"
@@ -1,7 +1,7 @@
package queries
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package queries
import (
"context"
@@ -1,7 +1,7 @@
package queries
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package queries
import (
"context"
@@ -1,7 +1,7 @@
package queries
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package queries
import (
"github.com/Khan/genqlient/graphql"
)
@@ -1,7 +1,7 @@
package mypkg
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package mypkg
import (
"context"
@@ -1,7 +1,7 @@
package queries
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package queries
import (
"context"
@@ -1,7 +1,7 @@
package mypkg
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package mypkg
import (
"context"
@@ -1,7 +1,7 @@
package mypkg
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package mypkg
import (
"context"
+2 -2
View File
@@ -1,7 +1,7 @@
package integration
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package integration
import (
"context"
"encoding/json"