逆流而上perf: remove gateway
854b99eb创建于 2024年6月5日历史提交
package commonutil

// String returns a pointer to the string value passed in.
func String(v string) *string {
	return &v
}

// BoolValue returns the value of the bool pointer passed in or
// false if the pointer is nil.
func BoolValue(v *bool) bool {
	if v != nil {
		return *v
	}
	return false
}

// Int64 returns a pointer to the int64 value passed in.
func Int64(v int64) *int64 {
	return &v
}