Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lolcat.go:5:2: code in directory /root/go/src/github.com/dmgk/faker expects import "syreclabs.com/go/faker" #16

Closed
fengzhao opened this issue Dec 10, 2019 · 1 comment

Comments

@fengzhao
Copy link

I already use go get -u syreclabs.com/go/faker to get faker repo , but when I use my code

package main                                                                                                                                                                                                                                                 
  
import (
        "fmt"
        "github.com/dmgk/faker"
        "strings"
)
 
func main() {
        var phrases []string
 
        for i := 1; i < 3; i++ {
                phrases = append(phrases, faker.Hacker().Phrases()...)
        }
 
        fmt.Println(strings.Join(phrases[:], "; "))
}
~          

I build it , but it says "lolcat.go:5:2: code in directory /root/go/src/github.com/dmgk/faker expects import "syreclabs.com/go/faker""

@dmgk
Copy link
Owner

dmgk commented Dec 10, 2019

Replace import github.com/dmgk/faker with syreclabs.com/go/faker

@dmgk dmgk closed this as completed Dec 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants