reformat code with goimports
This commit is contained in:
@ -1,12 +1,14 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
"os"
|
||||
"strings"
|
||||
"os/user"
|
||||
"github.com/codegangsta/cli"
|
||||
"flag"
|
||||
"fmt"
|
||||
"os"
|
||||
"os/user"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/codegangsta/cli"
|
||||
)
|
||||
|
||||
// Custom type which is registered in the flags library which cli uses for
|
||||
@ -55,6 +57,7 @@ func eachName(longName string, fn func(string)) {
|
||||
fn(name)
|
||||
}
|
||||
}
|
||||
|
||||
// called by cli library, grabs variable from environment (if in env)
|
||||
// and adds variable to flag set for parsing.
|
||||
func (self DirectoryFlag) Apply(set *flag.FlagSet) {
|
||||
@ -128,6 +131,3 @@ func expandPath(p string) string {
|
||||
|
||||
return filepath.Clean(os.ExpandEnv(p))
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"os"
|
||||
"os/user"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestPathExpansion(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user