Skip to content

Commit 66cf9c5

Browse files
committed
Change import statements to" github.com/hoisie/web.go"
1 parent f197deb commit 66cf9c5

File tree

10 files changed

+19
-17
lines changed

10 files changed

+19
-17
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ _cgo_*
99
_obj
1010
_test
1111
_testmain.go
12+
*.swp

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
include $(GOROOT)/src/Make.inc
22

3-
TARG=web
3+
TARG=github.com/hoisie/web.go
44
GOFMT=gofmt -s -spaces=true -tabindent=false -tabwidth=4
55

66
GOFILES=\
7-
cookie.go\
7+
cookie.go\
88
fcgi.go\
99
request.go\
1010
scgi.go\

Readme.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,23 @@ web.go should be familiar to people who've developed websites with higher-level
1414

1515
## Installation
1616

17-
Make sure you have the a working Go environment. See the [install instructions](http://golang.org/doc/install.html). web.go targets the Go `weekly` release. Go is a fast-changing language, and it's easier to keep with the weekly branch than to maintain separate branches.
17+
Make sure you have the a working Go environment. See the [install instructions](http://golang.org/doc/install.html). web.go targets the Go `release` branch. If you use the `weekly` branch you may have difficulty compiling web.go. There's an alternative web.go branch, `weekly`, that attempts to keep up with the weekly branch.
1818

19-
To use web.go with Go's `weekly` branch:
19+
To install web.go, simply run:
2020

21-
1. Run `hg update -r weekly`. If you're running an outdated version of Go, or the `release` version, it likely won't compile.
22-
2. git clone git://github.com/hoisie/web.go.git
23-
3. cd web.go && make install
21+
goinstall github.com/hoisie/web.go
2422

25-
You can also install using `goinstall github.com/hoisie/web.go`, but if you do this, the import statement in your go programs will be `import github.com/hoisie/web.go` instead of just `import web`.
23+
To compile it from source:
24+
25+
git clone git://github.com/hoisie/web.go.git
26+
cd web.go && make install
2627

2728
## Example
2829

2930
package main
3031

3132
import (
32-
"web"
33+
"github.com/hoisie/web.go"
3334
)
3435

3536
func hello(val string) string { return "hello " + val }
@@ -53,7 +54,7 @@ Route handlers may contain a pointer to web.Context as their first parameter. Th
5354
package main
5455

5556
import (
56-
"web"
57+
"github.com/hoisie/web.go"
5758
)
5859

5960
func hello(ctx *web.Context, val string) {

examples/arcchallenge.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"rand"
55
"strconv"
66
"time"
7-
"web"
7+
"github.com/hoisie/web.go"
88
)
99

1010
var form = `<form action="say" method="POST"><input name="said"><input type="submit"></form>`

examples/hello.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
"web"
4+
"github.com/hoisie/web.go"
55
)
66

77
func hello(val string) string { return "hello " + val }

examples/logger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"log"
55
"os"
6-
"web"
6+
"github.com/hoisie/web.go"
77
)
88

99
func hello(val string) string { return "hello " + val }

examples/methodhandler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
"web"
4+
"github.com/hoisie/web.go"
55
)
66

77
type Greeter struct {

examples/multipart.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"bytes"
55
"crypto/md5"
66
"fmt"
7-
"web"
7+
"github.com/hoisie/web.go"
88
)
99

1010
func Md5(b []byte) string {

examples/multiserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
"web"
4+
"github.com/hoisie/web.go"
55
)
66

77
func hello1(val string) string { return "hello1 " + val }

examples/params.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"fmt"
5-
"web"
5+
"github.com/hoisie/web.go"
66
)
77

88
type mytype struct {

0 commit comments

Comments
 (0)