mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-05-02 22:17:12 +08:00
Fix a link in package docs' example code.
This commit is contained in:
parent
5faa7516f2
commit
2a5571a533
@ -25,7 +25,7 @@ Example:
|
|||||||
|
|
||||||
hello := gbot.AddRobot(gobot.NewRobot("Eve"))
|
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{} {
|
hello.AddCommand("say_hello", func(params map[string]interface{}) interface{} {
|
||||||
return fmt.Sprintf("%v says hello!", hello.Name)
|
return fmt.Sprintf("%v says hello!", hello.Name)
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user