I can't run the go example after installing the library #142
Answered
by
rusq
YassineOsip
asked this question in
Q&A
-
I got this error:./auth.go:15:14: undefined: NewIm using this example:
|
Beta Was this translation helpful? Give feedback.
Answered by
rusq
Sep 15, 2022
Replies: 1 comment 1 reply
-
I need to fix it - try this: import (
"github.com/rusq/slackdump/v2"
"github.com/rusq/slackdump/v2/auth"
)
func main() {
provider, err := auth.NewValueAuth("xoxc-...", "xoxd-...")
if err != nil {
log.Print(err)
return
}
sd, err := slackdump.New(context.Background(), provider)
if err != nil {
log.Print(err)
return
}
_ = sd
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
YassineOsip
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I need to fix it - try this: