增加转换成字符串指针

This commit is contained in:
zhangdeman committed 2023-07-03 15:59:37 +08:00
1 parent 1ca4b993fb
commit d925a453be
1 file changed
+13
+13
View File
@@ -474,6 +474,19 @@ func (str String) ToBoolPtr() BoolPtrResult {
}
}
// ToStringPtr 转换成字符串指针
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 15:57 2023/7/3
func (str String) ToStringPtr() StringPtrResult {
val := str.Value()
return StringPtrResult{
Value: &val,
Err: nil,
}
}
// ToObject ...
//
// Author : go_developer@163.com<白茶清欢>
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.