MCPcopy Create free account
hub / github.com/cloudwan/gohan / ID

Method ID

schema/resource.go:38–42  ·  view source on GitHub ↗

ID gets id from resource

()

Source from the content-addressed store, hash-verified

36
37//ID gets id from resource
38func (resource *Resource) ID() string {
39 id, _ := resource.properties["id"]
40 idString := fmt.Sprint(id)
41 return idString
42}
43
44//Get gets property from resource
45func (resource *Resource) Get(key string) interface{} {

Callers 2

PathMethod · 0.95
updateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected