`AddCustomStrategy` function is undefined
inigosola opened this issue · comments
inigosola commented
The example in Readme.me
file does not work.
package main
import bot "github.com/saniales/golang-crypto-trading-bot/cmd"
func main() {
bot.AddCustomStrategy(examples.MyStrategy)
bot.Execute()
}
AddCustomStrategy
function is undefined.
./main.go:6:6: undefined: bot.AddCustomStrategy
Hicham Medkouri commented
Try
package main
import (
bot "github.com/saniales/golang-crypto-trading-bot/cmd"
"github.com/saniales/golang-crypto-trading-bot/strategies"
)
func main() {
strategies.AddCustomStrategy(examples.MyStrategy)
bot.Execute()
}
inigosola commented
Than you!