Giter Site home page Giter Site logo

appengine about chi HOT 8 CLOSED

go-chi avatar go-chi commented on May 5, 2024
appengine

from chi.

Comments (8)

pkieltyka avatar pkieltyka commented on May 5, 2024 1

Perhaps you should look elsewhere if you're so unhappy?

from chi.

pkieltyka avatar pkieltyka commented on May 5, 2024

this would have been solved by the 1.8 alias feature, which may come in 1.9.

I have thought about this, but this problem you speak of, isn't up to chi. Chi uses standard net/http which uses "context", and so we depend on the same "context" thats now part of the http.Request object.

from chi.

twiggg avatar twiggg commented on May 5, 2024

:) this was not a comment about chi router, but about the fact that community version of golang (by google) and appengine version of the runtime (by google too ...) are tricky to make work together

from chi.

pkieltyka avatar pkieltyka commented on May 5, 2024

well, let me know if you come up with something.. I agree this isn't ideal. I'm pretty sure if I made a branch of chi that used "golang.org/x/net/context" it wouldn't help anyways because of net/http's use of "context".

from chi.

twiggg avatar twiggg commented on May 5, 2024

not sure neither ... wctx router seem to work on appengine but I wanted to stick with chi

from chi.

pkieltyka avatar pkieltyka commented on May 5, 2024

well you can use https://github.com/pressly/chi/tree/v1 which is almost identical and is compatible with "golang.org/x/net/context"

from chi.

VojtechVitek avatar VojtechVitek commented on May 5, 2024

googleapis/google-cloud-go#312

from chi.

twiggg avatar twiggg commented on May 5, 2024

yes thank you Vojtech I have read that they are aware of the mess this fragmentation causes ... but still have not found my way around (appart from not using libraries that import /context and not /x/net/context ... ) net/http.Request.Context() is using a context.Context so even change all imports of /context to /x/net/context in chi and render does not work

from chi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.