MCPcopy 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
272func generateID() string {
273 return strconv.FormatInt(time.Now().UnixNano(), 10)
274}
275
276func truncate(s string, maxLen int) string {
277 if len(s) <= maxLen {

Callers 3

appendEventsExampleFunction · 0.70
stateManagementExampleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected