Skip to content

Commit

Permalink
Added vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
phonkee committed Nov 27, 2016
1 parent 9f17b15 commit 1fff724
Show file tree
Hide file tree
Showing 1,112 changed files with 292,120 additions and 8 deletions.
3 changes: 1 addition & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ func init() {
configFormats["yaml"] = func(body []byte, target interface{}) (err error){
if response, e := yaml.YAMLToJSON(body); e != nil {
err = e
return
} else {
return json.Unmarshal(response, target)
err = json.Unmarshal(response, target)
}

return
Expand Down
66 changes: 66 additions & 0 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions glide.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package: github.com/phonkee/goexpose
import:
- package: github.com/garyburd/redigo
version: v1.0.0
subpackages:
- redis
- package: github.com/ghodss/yaml
- package: github.com/go-sql-driver/mysql
version: v1.2
- package: github.com/gocql/gocql
- package: github.com/golang/glog
- package: github.com/gorilla/mux
version: v1.1
- package: github.com/jmoiron/sqlx
- package: github.com/lib/pq
- package: github.com/nmcclain/ldap
testImport:
- package: github.com/smartystreets/goconvey
version: 1.6.2
subpackages:
- convey
16 changes: 16 additions & 0 deletions make.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

version=$(grep -F "VERSION = " settings.go | cut -d\" -f2)

echo "Cross compiling goexpose version: $version"

echo "Compiling for linux-amd64..."
env GOOS=linux GOARCH=amd64 go build -ldflags "-s" -o build/goexpose-linux-amd64-$version ./cmd/goexpose
echo "Compiling for linux-arm64..."
env GOOS=linux GOARCH=arm64 go build -ldflags "-s" -o build/goexpose-linux-arm64-$version ./cmd/goexpose
echo "Compiling for darwin-amd64..."
env GOOS=darwin GOARCH=amd64 go build -ldflags "-s" -o build/goexpose-darwin-amd64-$version ./cmd/goexpose
echo "Compiling for freebsd-amd64..."
env GOOS=freebsd GOARCH=amd64 go build -ldflags "-s" -o build/goexpose-freebsd-amd64-$version ./cmd/goexpose
echo "Compiling for windows-amd64..."
env GOOS=windows GOARCH=amd64 go build -ldflags "-s" -o build/goexpose-windows-amd64-$version.exe ./cmd/goexpose
11 changes: 5 additions & 6 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,18 @@ import (
"os"
"strings"

"github.com/gorilla/mux"
"github.com/golang/glog"
"github.com/gorilla/mux"
)

var (
version = "0.2"
logo = `
logo = `
______ ______ ______ __ __ ______ ______ ______ ______
/\ ___\/\ __ \/\ ___/\_\_\_\/\ == /\ __ \/\ ___\/\ ___\
\ \ \__ \ \ \/\ \ \ __\/_/\_\/\ \ _-\ \ \/\ \ \___ \ \ __\
\ \_____\ \_____\ \_____/\_\/\_\ \_\ \ \_____\/\_____\ \_____\
\/_____/\/_____/\/_____\/_/\/_/\/_/ \/_____/\/_____/\/_____/
v ` + version
version: %v`
)

/*
Expand All @@ -33,7 +32,7 @@ Returns new server instance
func NewServer(config *Config) (server *Server, err error) {
server = &Server{
Config: config,
Version: version,
Version: VERSION,
}

return
Expand All @@ -59,7 +58,7 @@ Runs http server
*/
func (s *Server) Run() (err error) {

glog.V(2).Info(logo)
glog.V(2).Infof(logo, s.Version)

if s.Router, err = s.router(); err != nil {
return
Expand Down
5 changes: 5 additions & 0 deletions settings.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package goexpose

const (
VERSION = "1.0.0"
)
16 changes: 16 additions & 0 deletions vendor/github.com/garyburd/redigo/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

175 changes: 175 additions & 0 deletions vendor/github.com/garyburd/redigo/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1fff724

Please sign in to comment.