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

x/tools/imports: Problem importing encoding/base64 #12699

Closed
sbdchd opened this issue Sep 20, 2015 · 1 comment
Closed

x/tools/imports: Problem importing encoding/base64 #12699

sbdchd opened this issue Sep 20, 2015 · 1 comment

Comments

@sbdchd
Copy link

sbdchd commented Sep 20, 2015

goimports does not seem to work with encoding/base64.

Here is the sample I tested goimports with:

package main

import (
    "fmt"
)

func main() {
    data := []byte("hello world")
    str := base64.RawURLEncoding.EncodeToString(data)
    fmt.Println(str)
}

I am using go version 1.5 darwin/amd64.

@bradfitz
Copy link
Contributor

Update your goimports.

@golang golang locked and limited conversation to collaborators Sep 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants