Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/devld/go-drive
/ GetVM
Function
GetVM
script/object_context.go:26–34 ·
view source on GitHub ↗
(v any)
Source
from the content-addressed store, hash-verified
24
}
25
26
func
GetVM(v any) *VM {
27
switch
v := v.(
type
) {
28
case
Context:
29
return
v.vm
30
case
TaskCtx:
31
return
v.vm
32
}
33
return
nil
34
}
35
36
func
GetTaskCtx(v any) types.TaskCtx {
37
switch
v := v.(
type
) {
Callers
9
Get
Method · 0.85
Save
Method · 0.85
MakeDir
Method · 0.85
Copy
Method · 0.85
Move
Method · 0.85
List
Method · 0.85
Delete
Method · 0.85
GetURL
Method · 0.85
GetReader
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected