Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ZeppelinMC/Zeppelin
/ NewEntityId
Function
NewEntityId
server/entity/entity.go:18–20 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
16
var
entityId atomic.Int32
17
18
func
NewEntityId() int32 {
19
return
entityId.Add(1)
20
}
21
22
func
New(uuid uuid.UUID, typ int32, metadata metadata.Metadata, attributes []Attribute) *Entity {
23
return
&Entity{
Callers
1
New
Method · 0.92
Calls
1
Add
Method · 0.45
Tested by
no test coverage detected