mirror of
https://github.com/minio/minio.git
synced 2026-11-11 06:29:05 +00:00
Add minio-cli stub generator
This commit is contained in:
1 parent
2b3be86727
commit
5268a62166
9 files changed
+387
-1
No files matched your search
+15
-1
@@ -16,8 +16,22 @@
|
||||
|
||||
package utils
|
||||
|
||||
import "io/ioutil"
|
||||
import (
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func MakeTempTestDir() (string, error) {
|
||||
return ioutil.TempDir("/tmp", "minio-test-")
|
||||
}
|
||||
|
||||
func Assert(err error) {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func FirstUpper(str string) string {
|
||||
return strings.ToUpper(str[0:1]) + str[1:]
|
||||
}
|
||||
Reference in new issue
Block a user