Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astercloud/aster
/ generateID
Function
generateID
examples/session-postgres/main.go:272–274 ·
view source on GitHub ↗
辅助函数
()
Source
from the content-addressed store, hash-verified
270
// 辅助函数
271
272
func
generateID() string {
273
return
strconv.FormatInt(time.Now().UnixNano(), 10)
274
}
275
276
func
truncate(s string, maxLen int) string {
277
if
len(s) <= maxLen {
Callers
3
appendEventsExample
Function · 0.70
stateManagementExample
Function · 0.70
artifactVersioningExample
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected