MCPcopy
hub / github.com/wavetermdev/waveterm / SetOID

Function SetOID

pkg/waveobj/waveobj.go:192–198  ·  view source on GitHub ↗
(waveObj WaveObj, oid string)

Source from the content-addressed store, hash-verified

190}
191
192func SetOID(waveObj WaveObj, oid string) {
193 desc := getWaveObjDesc(waveObj.GetOType())
194 if desc == nil {
195 return
196 }
197 reflect.ValueOf(waveObj).Elem().FieldByIndex(desc.OIDField.Index).SetString(oid)
198}
199
200func GetVersion(waveObj WaveObj) int {
201 desc := getWaveObjDesc(waveObj.GetOType())

Callers

nothing calls this directly

Calls 2

getWaveObjDescFunction · 0.85
GetOTypeMethod · 0.65

Tested by

no test coverage detected