diff --git a/README.md b/README.md index 544ae2e..dc0d8bc 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,10 @@ import ( func main() { //bolt defaults the command indicator to '.' however that can be changed with the options //Example: bolt.New(bolt.WithIndicator('!')) would support commands like !ping - b := bolt.New(bolt.WithLogLevel(bolt.LogLevelCmd)) + b, err := bolt.New(bolt.WithLogLevel(bolt.LogLevelCmd)) + if err != nil { + panic(err) + } b.AddCommands( // basic ping pong command, .ping can be run at anytime by anyone and will reply "pong" @@ -95,11 +98,12 @@ func main() { ) //start is a blocking call that handles safe-shutdown, all configuration and setup should be done before calling Start() - err := b.Start() + err = b.Start() if err != nil { panic(err) } } + ``` ## Development