Skip to content

Commit

Permalink
examples: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Aug 24, 2022
1 parent 88f243c commit 0baac39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions examples/interact/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -142,7 +143,7 @@ func main() {
Token: "123",
})

interact.AddCustomInteraction(&PositionInteraction{})
interact.AddCustomInteraction(&positionInteraction{})
if err := interact.Start(ctx); err != nil {
log.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion examples/kucoin-accounts/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0baac39

Please sign in to comment.