I am trying to get friendlist from Facebook Messenger in golang using REST API. For this, I tried to import package github.com/huandu/facebook
. But while running the code it gave an error:
package context: unrecognized import path "context" (import path does not begin with hostname)
Here is the import statement (as mentioned in godoc https://godoc.org/github.com/huandu/facebook ):
import (
"fmt"
"github.com/huandu/facebook"
)
Can anyone tell me what I am doing Wrong ?
Ensure that your Go environment is setup correctly, especially your $GOPATH
and $GOROOT
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.