From 8dac9acf7744fa7818c265c13238dada88a503a5 Mon Sep 17 00:00:00 2001 From: NotZippy Date: Thu, 9 Mar 2017 16:01:04 -0800 Subject: [PATCH] Changed samples to example to match repository --- harness/reflect.go | 4 ++-- harness/reflect_test.go | 6 +++--- revel/build.go | 2 +- revel/clean.go | 2 +- revel/package.go | 2 +- revel/run.go | 4 ++-- revel/test.go | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/harness/reflect.go b/harness/reflect.go index 088ddbf..77d6007 100644 --- a/harness/reflect.go +++ b/harness/reflect.go @@ -29,7 +29,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/samples/chat/app/controllers.(*Application).Action" + // e.g. "github.com/revel/examples/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. @@ -48,7 +48,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/samples/chat/app/controllers" + ImportPath string // e.g. "github.com/revel/examples/chat/app/controllers" PackageName string // e.g. "controllers" MethodSpecs []*MethodSpec diff --git a/harness/reflect_test.go b/harness/reflect_test.go index 9db9b23..18116ba 100644 --- a/harness/reflect_test.go +++ b/harness/reflect_test.go @@ -144,13 +144,13 @@ func TestTypeExpr(t *testing.T) { } func TestProcessBookingSource(t *testing.T) { - revel.Init("prod", "github.com/revel/samples/booking", "") + revel.Init("prod", "github.com/revel/examples/booking", "") sourceInfo, err := ProcessSource([]string{revel.AppPath}) if err != nil { t.Fatal("Failed to process booking source with error:", err) } - controllerPackage := "github.com/revel/samples/booking/app/controllers" + controllerPackage := "github.com/revel/examples/booking/app/controllers" expectedControllerSpecs := []*TypeInfo{ {"GorpController", controllerPackage, "controllers", nil, nil}, {"Application", controllerPackage, "controllers", nil, nil}, @@ -182,7 +182,7 @@ NEXT_TEST: } func BenchmarkProcessBookingSource(b *testing.B) { - revel.Init("", "github.com/revel/samples/booking", "") + revel.Init("", "github.com/revel/examples/booking", "") revel.TRACE = log.New(ioutil.Discard, "", 0) b.ResetTimer() diff --git a/revel/build.go b/revel/build.go index 58ee4e3..6de71e9 100644 --- a/revel/build.go +++ b/revel/build.go @@ -30,7 +30,7 @@ WARNING: The target path will be completely deleted, if it already exists! For example: - revel build github.com/revel/samples/chat /tmp/chat + revel build github.com/revel/examples/chat /tmp/chat `, } diff --git a/revel/clean.go b/revel/clean.go index 0a0126a..a05c58b 100644 --- a/revel/clean.go +++ b/revel/clean.go @@ -19,7 +19,7 @@ Clean the Revel web application named by the given import path. For example: - revel clean github.com/revel/samples/chat + revel clean github.com/revel/examples/chat It removes the app/tmp and app/routes directory. `, diff --git a/revel/package.go b/revel/package.go index 0eb4d40..31b5ff3 100644 --- a/revel/package.go +++ b/revel/package.go @@ -27,7 +27,7 @@ Run mode defaults to "dev". For example: - revel package github.com/revel/samples/chat + revel package github.com/revel/examples/chat `, } diff --git a/revel/run.go b/revel/run.go index 3817f80..b206540 100644 --- a/revel/run.go +++ b/revel/run.go @@ -20,7 +20,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/samples/chat dev + revel run github.com/revel/examples/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. @@ -29,7 +29,7 @@ Run mode defaults to "dev". You can set a port as an optional third parameter. For example: - revel run github.com/revel/samples/chat prod 8080`, + revel run github.com/revel/examples/chat prod 8080`, } // RunArgs holds revel run parameters diff --git a/revel/test.go b/revel/test.go index 10d5bac..4bd38b1 100644 --- a/revel/test.go +++ b/revel/test.go @@ -28,7 +28,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/samples/booking dev + revel test github.com/revel/examples/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.