diff options
author | enahum <nahumhbl@gmail.com> | 2016-07-13 07:38:58 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-07-13 07:38:58 -0400 |
commit | 540ebbd74db3a39007a1176e7bba2e275c3adf03 (patch) | |
tree | 84d08a7db4031e53aad83632c045830f10a8cf32 /vendor/github.com/kardianos/osext/osext.go | |
parent | d2df385f41e5cba47c5138ce1b0c8458bebd45e1 (diff) | |
download | chat-540ebbd74db3a39007a1176e7bba2e275c3adf03.tar.gz chat-540ebbd74db3a39007a1176e7bba2e275c3adf03.tar.bz2 chat-540ebbd74db3a39007a1176e7bba2e275c3adf03.zip |
SAML Unit Tests, Go Driver & Removed vendor dependency (#3532)
Diffstat (limited to 'vendor/github.com/kardianos/osext/osext.go')
-rw-r--r-- | vendor/github.com/kardianos/osext/osext.go | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/vendor/github.com/kardianos/osext/osext.go b/vendor/github.com/kardianos/osext/osext.go deleted file mode 100644 index 17f380f0e..000000000 --- a/vendor/github.com/kardianos/osext/osext.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2012 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Extensions to the standard "os" package. -package osext // import "github.com/kardianos/osext" - -import "path/filepath" - -var cx, ce = executableClean() - -func executableClean() (string, error) { - p, err := executable() - return filepath.Clean(p), err -} - -// Executable returns an absolute path that can be used to -// re-invoke the current program. -// It may not be valid after the current program exits. -func Executable() (string, error) { - return cx, ce -} - -// Returns same path as Executable, returns just the folder -// path. Excludes the executable name and any trailing slash. -func ExecutableFolder() (string, error) { - p, err := Executable() - if err != nil { - return "", err - } - - return filepath.Dir(p), nil -} |