diff --git a/harness/reflect.go b/harness/reflect.go index f64630c..cf7aa28 100644 --- a/harness/reflect.go +++ b/harness/reflect.go @@ -25,7 +25,7 @@ type SourceInfo struct { StructSpecs []*TypeInfo // ValidationKeys provides a two-level lookup. The keys are: // 1. The fully-qualified function name, - // e.g. "github.com/revel/revel/samples/chat/app/controllers.(*Application).Action" + // e.g. "github.com/revel/samples/chat/app/controllers.(*Application).Action" // 2. Within that func's file, the line number of the (overall) expression statement. // e.g. the line returned from runtime.Caller() // The result of the lookup the name of variable being validated. @@ -44,7 +44,7 @@ type SourceInfo struct { // TypeInfo summarizes information about a struct type in the app source code. type TypeInfo struct { StructName string // e.g. "Application" - ImportPath string // e.g. "github.com/revel/revel/samples/chat/app/controllers" + ImportPath string // e.g. "github.com/revel/samples/chat/app/controllers" PackageName string // e.g. "controllers" MethodSpecs []*MethodSpec diff --git a/harness/reflect_test.go b/harness/reflect_test.go index a704d74..f45364e 100644 --- a/harness/reflect_test.go +++ b/harness/reflect_test.go @@ -139,13 +139,13 @@ func TestTypeExpr(t *testing.T) { } func TestProcessBookingSource(t *testing.T) { - revel.Init("prod", "github.com/revel/revel/samples/booking", "") + revel.Init("prod", "github.com/revel/samples/booking", "") sourceInfo, err := ProcessSource([]string{revel.AppPath}) if err != nil { t.Fatal("Failed to process booking source with error:", err) } - CONTROLLER_PKG := "github.com/revel/revel/samples/booking/app/controllers" + CONTROLLER_PKG := "github.com/revel/samples/booking/app/controllers" expectedControllerSpecs := []*TypeInfo{ {"GorpController", CONTROLLER_PKG, "controllers", nil, nil}, {"Application", CONTROLLER_PKG, "controllers", nil, nil}, @@ -177,7 +177,7 @@ NEXT_TEST: } func BenchmarkProcessBookingSource(b *testing.B) { - revel.Init("", "github.com/revel/revel/samples/booking", "") + revel.Init("", "github.com/revel/samples/booking", "") revel.TRACE = log.New(ioutil.Discard, "", 0) b.ResetTimer() diff --git a/revel/build.go b/revel/build.go index 8fb3e9d..45e7d07 100644 --- a/revel/build.go +++ b/revel/build.go @@ -22,7 +22,7 @@ WARNING: The target path will be completely deleted, if it already exists! For example: - revel build github.com/revel/revel/samples/chat /tmp/chat + revel build github.com/revel/samples/chat /tmp/chat `, } diff --git a/revel/clean.go b/revel/clean.go index 15a43d3..1af29bf 100644 --- a/revel/clean.go +++ b/revel/clean.go @@ -15,7 +15,7 @@ Clean the Revel web application named by the given import path. For example: - revel clean github.com/revel/revel/samples/chat + revel clean github.com/revel/samples/chat It removes the app/tmp directory. `, diff --git a/revel/package.go b/revel/package.go index b909901..fe1e4c3 100644 --- a/revel/package.go +++ b/revel/package.go @@ -17,7 +17,7 @@ This allows it to be deployed and run on a machine that lacks a Go installation. For example: - revel package github.com/revel/revel/samples/chat + revel package github.com/revel/samples/chat `, } diff --git a/revel/run.go b/revel/run.go index d1f8f7f..891415b 100644 --- a/revel/run.go +++ b/revel/run.go @@ -14,7 +14,7 @@ Run the Revel web application named by the given import path. For example, to run the chat room sample application: - revel run github.com/revel/revel/samples/chat dev + revel run github.com/revel/samples/chat dev The run mode is used to select which set of app.conf configuration should apply and may be used to determine logic in the application itself. @@ -23,7 +23,7 @@ Run mode defaults to "dev". You can set a port as an optional third parameter. For example: - revel run github.com/revel/revel/samples/chat prod 8080`, + revel run github.com/revel/samples/chat prod 8080`, } func init() { diff --git a/revel/test.go b/revel/test.go index 0276f91..3128cd6 100644 --- a/revel/test.go +++ b/revel/test.go @@ -23,7 +23,7 @@ Run all tests for the Revel app named by the given import path. For example, to run the booking sample application's tests: - revel test github.com/revel/revel/samples/booking dev + revel test github.com/revel/samples/booking dev The run mode is used to select which set of app.conf configuration should apply and may be used to determine logic in the application itself.