Comments (4)
Until that issue is resolved, I'll just note that the github.com/shurcooL/go/ctxhttp
package is very simple conceptually. Its source is 100% identical to golang.org/x/net/context/ctxhttp
, except the pre-1.7 support is dropped and "golang.org/x/net/context" import is replaced with "context".
Compare for yourself:
from graphql.
Hi Glenn,
Thanks for checking in on this. To be clear, the ctxhttp
package comment says:
It's a copy of "golang.org/x/net/context/ctxhttp" with pre-1.7 support dropped, and "golang.org/x/net/context" import replaced with "context". It exists temporarily until "golang.org/x/net/context/ctxhttp" is updated, which will happen "in a couple releases" according to https://golang.org/cl/24620.
Specifically, it exists until golang.org/x/net/context/ctxhttp
is updated to use context
instead of the obsolete golang.org/x/net/context
. It is not waiting on CL 24620 to be merged—that happened a long time ago. I referenced that CL because its the source of information that the golang.org/x/net/context/ctxhttp
update to use context
will happen "in a couple releases".
Perhaps I should've been more specific there and pointed to the message itself:
https://go-review.googlesource.com/c/24620#message-a0eec577b9152b699a15e9c50c8615654fb3191b
That hasn't happened yet, so I can't quite do this. Otherwise, it would result in both context
and golang.org/x/net/context
packages being imported (indirectly), which would be suboptimal.
Now that Go 1.9 final is almost released, perhaps it's very soon that golang.org/x/net/context/ctxhttp
can be updated and my copy will no longer need to exist.
from graphql.
I've filed golang/go#21358 to find out what the status of the upstream ctxhttp
is, and when it can be updated to use the modern context
import.
from graphql.
Issue golang/go#21358 has been resolved today, so I can finally resolve this issue! 🎉 /cc @gmlewis @bradfitz
from graphql.
Related Issues (20)
- query with circular dependencies leads to infinite recursion HOT 1
- Any interest in native go type support? HOT 1
- I want to add where condition in the query structure, how to do this
- How to define struct HOT 3
- Query and Mutation methods ignore query content when it's wrapped in an interface HOT 3
- Query for Github Projects in an organization HOT 2
- How to deal with integer overflow when using variables HOT 2
- How to make one condition in filter optional? HOT 1
- My stacks
- Question: How to implement an enumeration type HOT 1
- Question: Example of doing pagination (especially on nested resources that are paginated) HOT 6
- Nested struct tag not applied to query HOT 2
- Using alternative rest clients
- OAuth2 Bearer Token with Customer HttpClient HOT 1
- Please make "constructQuery" exported HOT 3
- Allow building mutations from maps instead of structs
- I love this library but it seems unmaintained? HOT 1
- FaunaDB graphql _id defined as _ID not exported HOT 4
- Message: x-hasura-admin-secret but not found,
- Return more verbose error to the caller HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphql.