refactor: optimize code

This commit is contained in:
Fu Diwei
2024-10-20 20:42:13 +08:00
parent 560d21c854
commit f6a3f4edfa
3 changed files with 29 additions and 32 deletions

View File

@@ -0,0 +1,9 @@
package cast
func Int32Ptr(i int32) *int32 {
return &i
}
func StringPtr(s string) *string {
return &s
}