You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
579 B
32 lines
579 B
package dorm
|
|
|
|
// String 复制 string 对象,并返回复制体
|
|
func String(s string) string {
|
|
return s
|
|
}
|
|
|
|
// Bool 复制 bool 对象,并返回复制体
|
|
func Bool(b bool) bool {
|
|
return b
|
|
}
|
|
|
|
// Float64 复制 float64 对象,并返回复制体
|
|
func Float64(f float64) float64 {
|
|
return f
|
|
}
|
|
|
|
// Float32 复制 float32 对象,并返回复制体
|
|
func Float32(f float32) float32 {
|
|
return f
|
|
}
|
|
|
|
// Int64 复制 int64 对象,并返回复制体
|
|
func Int64(i int64) int64 {
|
|
return i
|
|
}
|
|
|
|
// Int32 复制 int64 对象,并返回复制体
|
|
func Int32(i int32) int32 {
|
|
return i
|
|
}
|