func GetInt64Val(ptr *int64, defVal int64) int64 {
	if ptr != nil {
		return *ptr
	}
	return defVal
}
GetInt64Val receives a pointer to int64 value and returns its value or defVal, if the pointer is nil
package utils