Update godeps

This commit is contained in:
Manuel de Brito Fontes 2016-11-10 19:57:28 -03:00
parent 1c8773fc98
commit 1bc383f9c5
1723 changed files with 287976 additions and 411028 deletions

27
vendor/github.com/segmentio/go-camelcase/.gitignore generated vendored Normal file
View file

@ -0,0 +1,27 @@
# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so
# Folders
_obj
_test
# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out
*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*
_testmain.go
*.exe
*.test
*.prof
# Emacs
*~

22
vendor/github.com/segmentio/go-camelcase/Readme.md generated vendored Normal file
View file

@ -0,0 +1,22 @@
# go-camelcase
Fast camelcase implementation that avoids Go's regexps. Direct fork of our [snakecase](https://github.com/segmentio/go-snakecase) implementation.
--
import "github.com/segmentio/go-camelcase"
Convert strings to camelCase
## Usage
#### func Camelcase
```go
func Camelcase(str string) string
```
Camelcase representation of `str`.
# License
MIT

105
vendor/github.com/segmentio/go-camelcase/camel.go generated vendored Normal file
View file

@ -0,0 +1,105 @@
//
// Fast camel-case implementation.
//
package camelcase
// Camelcase the given string.
func Camelcase(s string) string {
b := make([]byte, 0, 64)
l := len(s)
i := 0
for i < l {
// skip leading bytes that aren't letters or digits
for i < l && !isWord(s[i]) {
i++
}
// set the first byte to uppercase if it needs to
if i < l {
c := s[i]
// simply append contiguous digits
if isDigit(c) {
for i < l {
if c = s[i]; !isDigit(c) {
break
}
b = append(b, c)
i++
}
continue
}
// the sequence starts with and uppercase letter, we append
// all following uppercase letters as equivalent lowercases
if isUpper(c) {
b = append(b, c)
i++
for i < l {
if c = s[i]; !isUpper(c) {
break
}
b = append(b, toLower(c))
i++
}
} else {
b = append(b, toUpper(c))
i++
}
// append all trailing lowercase letters
for i < l {
if c = s[i]; !isLower(c) {
break
}
b = append(b, c)
i++
}
}
}
// the first byte must always be lowercase
if len(b) != 0 {
b[0] = toLower(b[0])
}
return string(b)
}
func isWord(c byte) bool {
return isLetter(c) || isDigit(c)
}
func isLetter(c byte) bool {
return isLower(c) || isUpper(c)
}
func isUpper(c byte) bool {
return c >= 'A' && c <= 'Z'
}
func isLower(c byte) bool {
return c >= 'a' && c <= 'z'
}
func isDigit(c byte) bool {
return c >= '0' && c <= '9'
}
func toLower(c byte) byte {
if isUpper(c) {
return c + ('a' - 'A')
}
return c
}
func toUpper(c byte) byte {
if isLower(c) {
return c - ('a' - 'A')
}
return c
}

21
vendor/github.com/segmentio/go-camelcase/circle.yml generated vendored Normal file
View file

@ -0,0 +1,21 @@
machine:
services:
- docker
dependencies:
override:
- docker pull segment/golang:latest
test:
override:
- >
docker run
$(env | grep -E '^CIRCLE_|^DOCKER_|^CIRCLECI=|^CI=' | sed 's/^/--env /g' | tr "\\n" " ")
--rm
--tty
--interactive
--name go
--volume /var/run/docker.sock:/run/docker.sock
--volume ${PWD}:/go/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}
--workdir /go/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}
segment/golang:latest