Skip to content

Commit a1c763d

Browse files
author
Michel Aquino
committed
Rename imports
1 parent 83d0746 commit a1c763d

File tree

90 files changed

+238
-238
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+238
-238
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# graphql [![Build Status](https://travis-ci.org/globocom/graphql.svg?branch=master)](https://travis-ci.org/globocom/graphql.svg?branch=master) [![GoDoc](https://godoc.org/graphql.co/graphql?status.svg)](https://godoc.org/github.com/graphql-go/graphql) [![Coverage Status](https://coveralls.io/repos/graphql-go/graphql/badge.svg?branch=master&service=github)](https://coveralls.io/github/graphql-go/graphql?branch=master) [![Join the chat at https://gitter.im/chris-ramon/graphql](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/graphql-go/graphql?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
1+
# graphql [![Build Status](https://travis-ci.org/globocom/graphql.svg?branch=master)](https://travis-ci.org/globocom/graphql.svg?branch=master) [![GoDoc](https://godoc.org/graphql.co/graphql?status.svg)](https://godoc.org/github.com/globocom/graphql) [![Coverage Status](https://coveralls.io/repos/graphql-go/graphql/badge.svg?branch=master&service=github)](https://coveralls.io/github/graphql-go/graphql?branch=master) [![Join the chat at https://gitter.im/chris-ramon/graphql](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/graphql-go/graphql?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
22

33
A *work-in-progress* implementation of GraphQL for Go.
44

55
### Documentation
66

7-
godoc: https://godoc.org/github.com/graphql-go/graphql
7+
godoc: https://godoc.org/github.com/globocom/graphql
88

99
### Getting Started
1010

1111
To install the library, run:
1212
```bash
13-
go get github.com/graphql-go/graphql
13+
go get github.com/globocom/graphql
1414
```
1515

1616
The following is a simple example which defines a schema with a single `hello` string-type field and a `Resolve` method which returns the string `world`. A GraphQL query is performed against this schema with the resulting output printed in JSON format.
@@ -23,7 +23,7 @@ import (
2323
"fmt"
2424
"log"
2525

26-
"github.com/graphql-go/graphql"
26+
"github.com/globocom/graphql"
2727
)
2828

2929
func main() {
@@ -58,7 +58,7 @@ func main() {
5858
fmt.Printf("%s \n", rJSON) // {“data”:{“hello”:”world”}}
5959
}
6060
```
61-
For more complex examples, refer to the [examples/](https://github.com/graphql-go/graphql/tree/master/examples/) directory and [graphql_test.go](https://github.com/graphql-go/graphql/blob/master/graphql_test.go).
61+
For more complex examples, refer to the [examples/](https://github.com/globocom/graphql/tree/master/examples/) directory and [graphql_test.go](https://github.com/globocom/graphql/blob/master/graphql_test.go).
6262

6363
### Origin and Current Direction
6464

@@ -67,8 +67,8 @@ This project was originally a port of [v0.4.3](https://github.com/graphql/graphq
6767
### Third Party Libraries
6868
| Name | Author | Description |
6969
|:-------------:|:-------------:|:------------:|
70-
| [graphql-go-handler](https://github.com/graphql-go/graphql-go-handler) | [Hafiz Ismail](https://github.com/sogko) | Middleware to handle GraphQL queries through HTTP requests. |
71-
| [graphql-relay-go](https://github.com/graphql-go/graphql-relay-go) | [Hafiz Ismail](https://github.com/sogko) | Lib to construct a graphql-go server supporting react-relay. |
70+
| [graphql-go-handler](https://github.com/globocom/graphql-go-handler) | [Hafiz Ismail](https://github.com/sogko) | Middleware to handle GraphQL queries through HTTP requests. |
71+
| [graphql-relay-go](https://github.com/globocom/graphql-relay-go) | [Hafiz Ismail](https://github.com/sogko) | Lib to construct a graphql-go server supporting react-relay. |
7272
| [golang-relay-starter-kit](https://github.com/sogko/golang-relay-starter-kit) | [Hafiz Ismail](https://github.com/sogko) | Barebones starting point for a Relay application with Golang GraphQL server. |
7373

7474
### Blog Posts

abstract_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"reflect"
55
"testing"
66

7-
"github.com/graphql-go/graphql"
8-
"github.com/graphql-go/graphql/gqlerrors"
9-
"github.com/graphql-go/graphql/language/location"
10-
"github.com/graphql-go/graphql/testutil"
7+
"github.com/globocom/graphql"
8+
"github.com/globocom/graphql/gqlerrors"
9+
"github.com/globocom/graphql/language/location"
10+
"github.com/globocom/graphql/testutil"
1111
)
1212

1313
type testDog struct {

definition.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"reflect"
66
"regexp"
77

8-
"github.com/graphql-go/graphql/language/ast"
8+
"github.com/globocom/graphql/language/ast"
99
"golang.org/x/net/context"
1010
)
1111

definition_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"reflect"
66
"testing"
77

8-
"github.com/graphql-go/graphql"
9-
"github.com/graphql-go/graphql/testutil"
8+
"github.com/globocom/graphql"
9+
"github.com/globocom/graphql/testutil"
1010
)
1111

1212
var blogImage = graphql.NewObject(graphql.ObjectConfig{

directives_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"reflect"
55
"testing"
66

7-
"github.com/graphql-go/graphql"
8-
"github.com/graphql-go/graphql/gqlerrors"
9-
"github.com/graphql-go/graphql/language/location"
10-
"github.com/graphql-go/graphql/testutil"
7+
"github.com/globocom/graphql"
8+
"github.com/globocom/graphql/gqlerrors"
9+
"github.com/globocom/graphql/language/location"
10+
"github.com/globocom/graphql/testutil"
1111
)
1212

1313
var directivesTestSchema, _ = graphql.NewSchema(graphql.SchemaConfig{

enum_type_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"reflect"
55
"testing"
66

7-
"github.com/graphql-go/graphql"
8-
"github.com/graphql-go/graphql/gqlerrors"
9-
"github.com/graphql-go/graphql/language/location"
10-
"github.com/graphql-go/graphql/testutil"
7+
"github.com/globocom/graphql"
8+
"github.com/globocom/graphql/gqlerrors"
9+
"github.com/globocom/graphql/language/location"
10+
"github.com/globocom/graphql/testutil"
1111
)
1212

1313
var enumTypeTestColorType = graphql.NewEnum(graphql.EnumConfig{

examples/context/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"log"
77
"net/http"
88

9-
"github.com/graphql-go/graphql"
9+
"github.com/globocom/graphql"
1010
"golang.org/x/net/context"
1111
)
1212

examples/hello-world/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"log"
77

8-
"github.com/graphql-go/graphql"
8+
"github.com/globocom/graphql"
99
)
1010

1111
func main() {

examples/http/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"io/ioutil"
77
"net/http"
88

9-
"github.com/graphql-go/graphql"
9+
"github.com/globocom/graphql"
1010
)
1111

1212
type user struct {

examples/httpdynamic/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"strconv"
1111
"syscall"
1212

13-
"github.com/graphql-go/graphql"
13+
"github.com/globocom/graphql"
1414
)
1515

1616
/*****************************************************************************/

examples/star-wars/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"fmt"
66
"net/http"
77

8-
"github.com/graphql-go/graphql"
9-
"github.com/graphql-go/graphql/testutil"
8+
"github.com/globocom/graphql"
9+
"github.com/globocom/graphql/testutil"
1010
)
1111

1212
func main() {

examples/todo/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"net/http"
88
"time"
99

10-
"github.com/graphql-go/graphql"
10+
"github.com/globocom/graphql"
1111
)
1212

1313
type Todo struct {

executor.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"reflect"
77
"strings"
88

9-
"github.com/graphql-go/graphql/gqlerrors"
10-
"github.com/graphql-go/graphql/language/ast"
9+
"github.com/globocom/graphql/gqlerrors"
10+
"github.com/globocom/graphql/language/ast"
1111
"golang.org/x/net/context"
1212
)
1313

executor_resolve_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"reflect"
66
"testing"
77

8-
"github.com/graphql-go/graphql"
9-
"github.com/graphql-go/graphql/testutil"
8+
"github.com/globocom/graphql"
9+
"github.com/globocom/graphql/testutil"
1010
)
1111

1212
func testSchema(t *testing.T, testField *graphql.Field) graphql.Schema {

executor_schema_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"reflect"
66
"testing"
77

8-
"github.com/graphql-go/graphql"
9-
"github.com/graphql-go/graphql/testutil"
8+
"github.com/globocom/graphql"
9+
"github.com/globocom/graphql/testutil"
1010
)
1111

1212
// TODO: have a separate package for other tests for eg `parser`

executor_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88
"testing"
99
"time"
1010

11-
"github.com/graphql-go/graphql"
12-
"github.com/graphql-go/graphql/gqlerrors"
13-
"github.com/graphql-go/graphql/language/location"
14-
"github.com/graphql-go/graphql/testutil"
11+
"github.com/globocom/graphql"
12+
"github.com/globocom/graphql/gqlerrors"
13+
"github.com/globocom/graphql/language/location"
14+
"github.com/globocom/graphql/testutil"
1515
"golang.org/x/net/context"
1616
)
1717

gqlerrors/error.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package gqlerrors
33
import (
44
"fmt"
55

6-
"github.com/graphql-go/graphql/language/ast"
7-
"github.com/graphql-go/graphql/language/location"
8-
"github.com/graphql-go/graphql/language/source"
6+
"github.com/globocom/graphql/language/ast"
7+
"github.com/globocom/graphql/language/location"
8+
"github.com/globocom/graphql/language/source"
99
)
1010

1111
type Error struct {

gqlerrors/formatted.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package gqlerrors
33
import (
44
"errors"
55

6-
"github.com/graphql-go/graphql/language/location"
6+
"github.com/globocom/graphql/language/location"
77
)
88

99
type FormattedError struct {

gqlerrors/located.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package gqlerrors
22

33
import (
44
"errors"
5-
"github.com/graphql-go/graphql/language/ast"
5+
"github.com/globocom/graphql/language/ast"
66
)
77

88
// NewLocatedError creates a graphql.Error with location info

gqlerrors/syntax.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"regexp"
66
"strings"
77

8-
"github.com/graphql-go/graphql/language/ast"
9-
"github.com/graphql-go/graphql/language/location"
10-
"github.com/graphql-go/graphql/language/source"
8+
"github.com/globocom/graphql/language/ast"
9+
"github.com/globocom/graphql/language/location"
10+
"github.com/globocom/graphql/language/source"
1111
)
1212

1313
func NewSyntaxError(s *source.Source, position int, description string) *Error {

graphql.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package graphql
22

33
import (
4-
"github.com/graphql-go/graphql/gqlerrors"
5-
"github.com/graphql-go/graphql/language/parser"
6-
"github.com/graphql-go/graphql/language/source"
4+
"github.com/globocom/graphql/gqlerrors"
5+
"github.com/globocom/graphql/language/parser"
6+
"github.com/globocom/graphql/language/source"
77
"golang.org/x/net/context"
88
)
99

graphql_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"reflect"
55
"testing"
66

7-
"github.com/graphql-go/graphql"
8-
"github.com/graphql-go/graphql/testutil"
7+
"github.com/globocom/graphql"
8+
"github.com/globocom/graphql/testutil"
99
"golang.org/x/net/context"
1010
)
1111

introspection.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"reflect"
66

7-
"github.com/graphql-go/graphql/language/ast"
8-
"github.com/graphql-go/graphql/language/printer"
7+
"github.com/globocom/graphql/language/ast"
8+
"github.com/globocom/graphql/language/printer"
99
)
1010

1111
const (

introspection_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"reflect"
55
"testing"
66

7-
"github.com/graphql-go/graphql"
8-
"github.com/graphql-go/graphql/gqlerrors"
9-
"github.com/graphql-go/graphql/language/location"
10-
"github.com/graphql-go/graphql/testutil"
7+
"github.com/globocom/graphql"
8+
"github.com/globocom/graphql/gqlerrors"
9+
"github.com/globocom/graphql/language/location"
10+
"github.com/globocom/graphql/testutil"
1111
)
1212

1313
func g(t *testing.T, p graphql.Params) *graphql.Result {

language/ast/arguments.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package ast
22

33
import (
4-
"github.com/graphql-go/graphql/language/kinds"
4+
"github.com/globocom/graphql/language/kinds"
55
)
66

77
// Argument implements Node

language/ast/definitions.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package ast
22

33
import (
4-
"github.com/graphql-go/graphql/language/kinds"
4+
"github.com/globocom/graphql/language/kinds"
55
)
66

77
type Definition interface {

language/ast/directives.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package ast
22

33
import (
4-
"github.com/graphql-go/graphql/language/kinds"
4+
"github.com/globocom/graphql/language/kinds"
55
)
66

77
// Directive implements Node

language/ast/document.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package ast
22

33
import (
4-
"github.com/graphql-go/graphql/language/kinds"
4+
"github.com/globocom/graphql/language/kinds"
55
)
66

77
// Document implements Node

language/ast/location.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package ast
22

33
import (
4-
"github.com/graphql-go/graphql/language/source"
4+
"github.com/globocom/graphql/language/source"
55
)
66

77
type Location struct {

language/ast/name.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package ast
22

33
import (
4-
"github.com/graphql-go/graphql/language/kinds"
4+
"github.com/globocom/graphql/language/kinds"
55
)
66

77
// Name implements Node

language/ast/selections.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package ast
22

33
import (
4-
"github.com/graphql-go/graphql/language/kinds"
4+
"github.com/globocom/graphql/language/kinds"
55
)
66

77
type Selection interface {

language/ast/type_definitions.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package ast
22

33
import (
4-
"github.com/graphql-go/graphql/language/kinds"
4+
"github.com/globocom/graphql/language/kinds"
55
)
66

77
type TypeDefinition interface {

language/ast/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package ast
22

33
import (
4-
"github.com/graphql-go/graphql/language/kinds"
4+
"github.com/globocom/graphql/language/kinds"
55
)
66

77
type Type interface {

0 commit comments

Comments
 (0)