GithubHelp home page GithubHelp logo

Comments (7)

davecheney avatar davecheney commented on June 2, 2024

Which version of Go are you using? You need at least Go 1.1

On 16 Nov 2013, at 11:48, 00001 [email protected] wrote:

go get github.com/codegangsta/martini
github.com/codegangsta/martini
Dropbox/go/src/github.com/codegangsta/martini/martini.go:94: method r.Handle is not an expression, must be called
Dropbox/go/src/github.com/codegangsta/martini/router.go:58: method route.handle is not an expression, must be called

The last commit was 3302320


Reply to this email directly or view it on GitHub.

from martini.

codegangsta avatar codegangsta commented on June 2, 2024

I will put the Go version requirement in the docs

Sent from my iPhone

On Nov 15, 2013, at 4:54 PM, Dave Cheney [email protected] wrote:

Which version of Go are you using? You need at least Go 1.1

On 16 Nov 2013, at 11:48, 00001 [email protected] wrote:

go get github.com/codegangsta/martini
github.com/codegangsta/martini
Dropbox/go/src/github.com/codegangsta/martini/martini.go:94: method r.Handle is not an expression, must be called
Dropbox/go/src/github.com/codegangsta/martini/router.go:58: method route.handle is not an expression, must be called

The last commit was 3302320


Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub.

from martini.

 avatar commented on June 2, 2024

I received the same error from having an earlier version. Might have better luck with this.

from martini.

davecheney avatar davecheney commented on June 2, 2024

You can probbaly use a build tag to create a file, something like

// +build !go1.1

func MartiniDoesNotSupportGo1Point0() {
var you_need_go_1_1_or_better = 1 // compile error
}

On Sat, Nov 16, 2013 at 6:21 PM, Cameron Fraser [email protected]:

I received the same error from having an earlier version. Might have
better luck with this http://golang.org/doc/install/source.


Reply to this email directly or view it on GitHubhttps://github.com//issues/47#issuecomment-28621430
.

from martini.

codegangsta avatar codegangsta commented on June 2, 2024

@davecheney I can't find any docs on how build constraints work with regards to go version. Does // +build !go1.1 mean 1.1 and later? or do I need to include 1.2 as well?

Do the build constraints contain tags for patch-level versions of go as well as major/minor?

from martini.

codegangsta avatar codegangsta commented on June 2, 2024

closing this. and adding a followup issue for @davecheney 's suggestion

from martini.

unixfile avatar unixfile commented on June 2, 2024

I updated Go and everything works. Thanks guys!

from martini.

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.