Skip to content

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

@sbdchd

Description

@sbdchd

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions