UnnoTed / fileb0x

a better customizable tool to embed files in go; also update embedded files remotely without restarting the server
MIT License
634 stars 53 forks source link

Generated code needs gofix #25

Closed xakep666 closed 6 years ago

xakep666 commented 6 years ago

Generated code imports golang.org/x/net/context but since go 1.7 it became a part of standard library and gofix replaces import with context.

Before gofix:

import (
    "bytes"
    "compress/gzip"
    "io"
    "net/http"
    "os"
    "path"

    "golang.org/x/net/context"
    "golang.org/x/net/webdav"
)

After gofix:

import (
    "bytes"
    "compress/gzip"
    "io"
    "net/http"
    "os"
    "path"

    "context"
    "golang.org/x/net/webdav"
)