1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-24 13:48:49 +08:00

Fix a link in package docs' example code.

This commit is contained in:
Kamil Sputo 2019-09-25 00:02:26 +02:00 committed by Ron Evans
parent 5faa7516f2
commit 2a5571a533

View File

@ -25,7 +25,7 @@ Example:
hello := gbot.AddRobot(gobot.NewRobot("Eve"))
// Accessible via http://localhost:3000/robots/Eve/commands/say_hello
// Accessible via http://localhost:3000/api/robots/Eve/commands/say_hello
hello.AddCommand("say_hello", func(params map[string]interface{}) interface{} {
return fmt.Sprintf("%v says hello!", hello.Name)
})