Switch branches/tags
Nothing to show
Find file History
nobjohns Fix-import-path
The go get command import the project to GOPATH/github.com/beego/samples, not to GOPATH/samples

If we get the project with go get command and try to run, it will fail with errors something like below :

2017/07/06 17:54:25 ERROR    ▶ 0003 Failed to build the application: main.go:5:2: cannot find package samples/todo/controllers in any of:
/usr/local/go/src/samples/todo/controllers (from GOROOT)
/home/<username>/<project name>/src/samples/todo/controllers (from GOPATH)

GOPATH/samples is not the right location on idiomatic Go
Latest commit 7cabf2b Jul 6, 2017
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
conf add todo Dec 15, 2013
controllers Fix-import-path Jul 6, 2017
models add todo Dec 15, 2013
static Update angular.min.js Apr 19, 2017
views add todo Dec 15, 2013
README.md update readme and fix paths May 16, 2016
README_ZH.md add todo Dec 15, 2013
main.go Fix-import-path Jul 6, 2017

README.md

todo list

angularJS + beego demo

Installation

cd $GOPATH/src/samples/todo
bee run

Usage

http://127.0.0.1:8080