mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
add repositories and fixed services
This commit is contained in:
@@ -52,3 +52,12 @@ func GetIP() string {
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func Find[T any](lst *[]T, callback func(item *T) bool) *T {
|
||||
for _, item := range *lst {
|
||||
if callback(&item) {
|
||||
return &item
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user