Giter Site home page Giter Site logo

codegangsta / bwag Goto Github PK

View Code? Open in Web Editor NEW
197.0 197.0 52.0 3.62 MB

Source code for the book "Building Web Apps with Go"

Home Page: http://codegangsta.gitbooks.io/building-web-apps-with-go/

License: Apache License 2.0

Go 84.84% HTML 15.16%

bwag's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bwag's Issues

Error in database example

If you run the example code in the Databases section as-is, the request throws a "Panic" error because QueryRow has to return a row, and the newly-initialized database table of course has no rows in it.

http://codegangsta.gitbooks.io/building-web-apps-with-go/content/databases/README.html

Again, very easy to figure out if you're not a total beginner, but maybe it would be better to either populate the db in the NewDB() function or remind the reader that the database must have data in order for QueryRow to work.

(Totally off-topic, but having worked with Perl's DBI for years I find the Golang database libraries really, really primitive. But maybe that's just me, I'm new to it...)

cheers

Error in render example

In the section "Using the render package," the render call using the example template doesn't do what you would expect.

http://codegangsta.gitbooks.io/building-web-apps-with-go/content/rendering/render/README.html

Specifically, by passing "nil" it will not render anything in the {{.}} bit. This was pretty easy for even a "go-newbie" to figure out, but then again I have a lot of non-Go programming experience. It might be confusing to an overall beginner.

Keep up the good work, and once again thanks for your contributions!

Change deployment directory to use godep instead of .godir

Its seems that the new "best way" of performing a deployment with heroku is to use the tools/godep. I would be more than happy to re-write that portion of manual/code. Let me know!

remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Fetching set buildpack https://github.com/kr/heroku-buildpack-go.git... done
remote: -----> Go app detected
remote:  !     Deprecated, .godir file found!
remote:  !     Please switch to godeps (github.com/tools/godep) ASAP
remote: -----> Installing go1.5... done
remote: 
remote:        Tired of waiting for bzr and hg?
remote:        Use github.com/tools/godep for faster deploys.
remote: 
remote: -----> Installing Virtualenv... done
remote: -----> Installing Mercurial... done
remote: -----> Installing Bazaar... done
remote: -----> Running: go get -tags heroku ./...
remote: 
remote: -----> Discovering process types
remote:        Procfile declares types -> web
remote: 
remote: -----> Compressing...
remote:        Done: 2.1M
remote: -----> Launching...
remote:        Released v3
remote:        https://mighty-citadel-93393.herokuapp.com/ deployed to Heroku
remote: 
remote: Verifying deploy... done.

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.