16 lines
196 B
Go
16 lines
196 B
Go
package utils
|
|
|
|
import "log"
|
|
|
|
func CheckErr(err error) {
|
|
if err != nil {
|
|
sendError([]int{132, 31213, 213})
|
|
}
|
|
}
|
|
|
|
func sendError(devs []int) {
|
|
for _, dev := range devs {
|
|
log.Println(dev)
|
|
}
|
|
}
|