MCPcopy Index your code
hub / github.com/fruitbars/simple-one-api / GetString

Function GetString

pkg/utils/pointer_utils.go:4–9  ·  view source on GitHub ↗

辅助函数:获取指针值

(ptr *string)

Source from the content-addressed store, hash-verified

2
3// 辅助函数:获取指针值
4func GetString(ptr *string) string {
5 if ptr != nil {
6 return *ptr
7 }
8 return ""
9}
10
11func GetInt64(ptr *int64) int64 {
12 if ptr != nil {

Callers 5

convertErrorFunction · 0.92
convertHYMessageFunction · 0.92
convertHYDeltaFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected