搭建框架

This commit is contained in:
Minho
2017-04-21 18:20:35 +08:00
parent d58087f723
commit 67486f0866
727 changed files with 831224 additions and 37 deletions

13
vendor/github.com/huichen/wukong/utils/test_utils.go generated vendored Normal file
View File

@@ -0,0 +1,13 @@
package utils
import (
"fmt"
"testing"
)
func Expect(t *testing.T, expect string, actual interface{}) {
actualString := fmt.Sprint(actual)
if expect != actualString {
t.Errorf("期待值=\"%s\", 实际=\"%s\"", expect, actualString)
}
}

15
vendor/github.com/huichen/wukong/utils/utils.go generated vendored Normal file
View File

@@ -0,0 +1,15 @@
package utils
func AbsInt(a int) int {
if a < 0 {
return -a
}
return a
}
func MinInt(a, b int) int {
if a < b {
return a
}
return b
}