mirror of https://github.com/containers/podman.git
Merge pull request #4968 from vrothberg/fork-camelcase
fork fatih/camelcase
This commit is contained in:
commit
0800ab4f65
|
|
@ -12,7 +12,7 @@ import (
|
||||||
"github.com/containers/libpod/libpod/define"
|
"github.com/containers/libpod/libpod/define"
|
||||||
"github.com/containers/libpod/pkg/rootless"
|
"github.com/containers/libpod/pkg/rootless"
|
||||||
"github.com/containers/libpod/pkg/sysinfo"
|
"github.com/containers/libpod/pkg/sysinfo"
|
||||||
"github.com/fatih/camelcase"
|
"github.com/containers/libpod/pkg/util/camelcase"
|
||||||
jsoniter "github.com/json-iterator/go"
|
jsoniter "github.com/json-iterator/go"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
|
||||||
2
go.mod
2
go.mod
|
|
@ -29,7 +29,7 @@ require (
|
||||||
github.com/elazarl/goproxy v0.0.0-20190421051319-9d40249d3c2f // indirect
|
github.com/elazarl/goproxy v0.0.0-20190421051319-9d40249d3c2f // indirect
|
||||||
github.com/elazarl/goproxy/ext v0.0.0-20190911111923-ecfe977594f1 // indirect
|
github.com/elazarl/goproxy/ext v0.0.0-20190911111923-ecfe977594f1 // indirect
|
||||||
github.com/etcd-io/bbolt v1.3.3
|
github.com/etcd-io/bbolt v1.3.3
|
||||||
github.com/fatih/camelcase v1.0.0
|
github.com/fatih/camelcase v1.0.0 // indirect
|
||||||
github.com/fsnotify/fsnotify v1.4.7
|
github.com/fsnotify/fsnotify v1.4.7
|
||||||
github.com/ghodss/yaml v1.0.0
|
github.com/ghodss/yaml v1.0.0
|
||||||
github.com/godbus/dbus v0.0.0-20190422162347-ade71ed3457e
|
github.com/godbus/dbus v0.0.0-20190422162347-ade71ed3457e
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ func Split(src string) (entries []string) {
|
||||||
class := 0
|
class := 0
|
||||||
// split into fields based on class of unicode character
|
// split into fields based on class of unicode character
|
||||||
for _, r := range src {
|
for _, r := range src {
|
||||||
switch true {
|
switch {
|
||||||
case unicode.IsLower(r):
|
case unicode.IsLower(r):
|
||||||
class = 1
|
class = 1
|
||||||
case unicode.IsUpper(r):
|
case unicode.IsUpper(r):
|
||||||
|
|
@ -86,5 +86,6 @@ func Split(src string) (entries []string) {
|
||||||
entries = append(entries, string(s))
|
entries = append(entries, string(s))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return
|
|
||||||
|
return entries
|
||||||
}
|
}
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
language: go
|
|
||||||
go: 1.x
|
|
||||||
|
|
||||||
|
|
@ -261,8 +261,6 @@ github.com/docker/spdystream
|
||||||
github.com/docker/spdystream/spdy
|
github.com/docker/spdystream/spdy
|
||||||
# github.com/etcd-io/bbolt v1.3.3
|
# github.com/etcd-io/bbolt v1.3.3
|
||||||
github.com/etcd-io/bbolt
|
github.com/etcd-io/bbolt
|
||||||
# github.com/fatih/camelcase v1.0.0
|
|
||||||
github.com/fatih/camelcase
|
|
||||||
# github.com/fsnotify/fsnotify v1.4.7
|
# github.com/fsnotify/fsnotify v1.4.7
|
||||||
github.com/fsnotify/fsnotify
|
github.com/fsnotify/fsnotify
|
||||||
# github.com/fsouza/go-dockerclient v1.6.0
|
# github.com/fsouza/go-dockerclient v1.6.0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue