Code
Hub
Trending
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
// 辅助函数:获取指针值
4
func
GetString(ptr *string) string {
5
if
ptr != nil {
6
return
*ptr
7
}
8
return
""
9
}
10
11
func
GetInt64(ptr *int64) int64 {
12
if
ptr != nil {
Callers
5
HunYuanResponseToOpenAIStreamResponse
Function · 0.92
HunYuanResponseToOpenAIResponse
Function · 0.92
convertError
Function · 0.92
convertHYMessage
Function · 0.92
convertHYDelta
Function · 0.92
Calls
no outgoing calls
Tested by
no test coverage detected