examples: fix lint issues

This commit is contained in:
c9s 2022-08-24 12:53:10 +08:00
parent 88f243c91b
commit 0baac39489
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
2 changed files with 5 additions and 4 deletions

View File

@ -36,11 +36,12 @@ type closePositionTask struct {
confirmed bool
}
type PositionInteraction struct {
type positionInteraction struct {
closePositionTask closePositionTask
}
func (m *PositionInteraction) Commands(i *interact.Interact) {
// Commands implements the custom interaction
func (m *positionInteraction) Commands(i *interact.Interact) {
i.Command("/closePosition", "", func(reply interact.Reply) error {
// send symbol options
reply.Message("Choose your position")
@ -142,7 +143,7 @@ func main() {
Token: "123",
})
interact.AddCustomInteraction(&PositionInteraction{})
interact.AddCustomInteraction(&positionInteraction{})
if err := interact.Start(ctx); err != nil {
log.Fatal(err)
}

View File

@ -38,7 +38,7 @@ var rootCmd = &cobra.Command{
},
}
var client *kucoinapi.RestClient = nil
var client *kucoinapi.RestClient
func main() {
if _, err := os.Stat(".env.local"); err == nil {