handle old updates
This commit is contained in:
parent
21b665110b
commit
ce23ec62d6
2 changed files with 3 additions and 15 deletions
|
@ -1,11 +1,5 @@
|
|||
package commonlogic
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
"runtime"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func ContainsInt64(a []int64, b int64) bool {
|
||||
for _, v := range a {
|
||||
if v == b {
|
||||
|
@ -15,9 +9,3 @@ func ContainsInt64(a []int64, b int64) bool {
|
|||
|
||||
return false
|
||||
}
|
||||
|
||||
func GetPackageName(temp interface{}) string {
|
||||
strs := strings.Split((runtime.FuncForPC(reflect.ValueOf(temp).Pointer()).Name()), ".")
|
||||
strs = strings.Split(strs[len(strs)-2], "/")
|
||||
return strs[len(strs)-1]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue