From 30168bcb620d9e7c053020484d5ee679d23403de Mon Sep 17 00:00:00 2001 From: Pawel Date: Fri, 17 Jun 2022 14:26:34 -0700 Subject: [PATCH] addressing PR comments --- examples_test.go | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/examples_test.go b/examples_test.go index c89633c..bce933d 100644 --- a/examples_test.go +++ b/examples_test.go @@ -1,65 +1,67 @@ -package rollbar +package rollbar_test import ( "errors" + + "github.com/rollbar/rollbar-go" ) func ExampleCritical_error() { - Critical(errors.New("bork"), map[string]interface{}{ + rollbar.Critical(errors.New("bork"), map[string]interface{}{ "hello": "world", }) } func ExampleCritical_message() { - Critical("bork", map[string]interface{}{ + rollbar.Critical("bork", map[string]interface{}{ "hello": "world", }) } func ExampleError_error() { - Error(errors.New("bork"), map[string]interface{}{ + rollbar.Error(errors.New("bork"), map[string]interface{}{ "hello": "world", }) } func ExampleError_message() { - Error("bork", map[string]interface{}{ + rollbar.Error("bork", map[string]interface{}{ "hello": "world", }) } func ExampleWarning_error() { - Warning(errors.New("bork"), map[string]interface{}{ + rollbar.Warning(errors.New("bork"), map[string]interface{}{ "hello": "world", }) } func ExampleWarning_message() { - Warning("bork", map[string]interface{}{ + rollbar.Warning("bork", map[string]interface{}{ "hello": "world", }) } func ExampleInfo_error() { - Info(errors.New("bork"), map[string]interface{}{ + rollbar.Info(errors.New("bork"), map[string]interface{}{ "hello": "world", }) } func ExampleInfo_message() { - Info("bork", map[string]interface{}{ + rollbar.Info("bork", map[string]interface{}{ "hello": "world", }) } func ExampleDebug_error() { - Debug(errors.New("bork"), map[string]interface{}{ + rollbar.Debug(errors.New("bork"), map[string]interface{}{ "hello": "world", }) } func ExampleDebug_message() { - Debug("bork", map[string]interface{}{ + rollbar.Debug("bork", map[string]interface{}{ "hello": "world", }) }