Git Product home page Git Product logo

Comments (7)

alexedwards avatar alexedwards commented on May 27, 2024

Are you using modules for the dependencies in your project, or the traditional GOPATH approach?

from scs.

krsanky avatar krsanky commented on May 27, 2024

I am using the traditional GOPATH approach.
(I am investigating using modules after you asked, in case that's what I should do going fwd)

from scs.

alexedwards avatar alexedwards commented on May 27, 2024

For running it under your GOPATH:

  • Install without the v2 postfix: go get github.com/alexedwards/scs
  • Import without the v2 postfix: import "github.com/alexedwards/scs"

Everything else should work as normal as documented after that.

But yes, I definitely recommend switching to using modules. There's a great introduction here.

from scs.

alexedwards avatar alexedwards commented on May 27, 2024

I'll update the installation instructions in the README to make this clearer.

from scs.

krsanky avatar krsanky commented on May 27, 2024

Thanks for the help.

from scs.

krsanky avatar krsanky commented on May 27, 2024

For posterity:
My underlying issue was that the scs api had simply changed in between me working on it.
I needed to update my code from the Manager.Load interface to using the simpler Session one.
Ironically this is something that the go modules approach would mitigate going forward, because you are more deliberate about versions when importing go code.
thanks again

from scs.

alexedwards avatar alexedwards commented on May 27, 2024

Thanks for the explanation and sorry for any trouble. It sounds like it was just unfortunate timing! The API should be stable now for a long time, and you're right, modules will address exact this problem in the future anyway.

from scs.

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.