From 9adbe9a7b17b90a5226542b5c427a88cadbf7ad7 Mon Sep 17 00:00:00 2001 From: Matt Dale <9760375+matthewdale@users.noreply.github.com> Date: Tue, 15 Aug 2023 22:08:25 -0700 Subject: [PATCH] Make v3 examples runnable on pkg.go.dev --- examples_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples_test.go b/examples_test.go index 7d668af774..5b52f1c981 100644 --- a/examples_test.go +++ b/examples_test.go @@ -7,7 +7,10 @@ import ( "os" "time" - "github.com/urfave/cli/v3" + // Alias the package import to make the examples runnable on pkg.go.dev. + // + // See issue #1811. + cli "github.com/urfave/cli/v3" ) func ExampleCommand_Run() {