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

Function ORefFromWaveObj

pkg/waveobj/waveobj.go:310–315  ·  view source on GitHub ↗
(w WaveObj)

Source from the content-addressed store, hash-verified

308}
309
310func ORefFromWaveObj(w WaveObj) *ORef {
311 return &ORef{
312 OType: w.GetOType(),
313 OID: GetOID(w),
314 }
315}
316
317func FromJsonGen[T WaveObj](data []byte) (T, error) {
318 obj, err := FromJson(data)

Callers 2

UpdateObjectMethod · 0.92
CreateTabFunction · 0.92

Calls 2

GetOIDFunction · 0.85
GetOTypeMethod · 0.65

Tested by

no test coverage detected