Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre committed Mar 19, 2024
1 parent 0bbdb39 commit a86ae3d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,8 @@ The config file for your yaml must look like this:
if err != nil {
return err
}
ctx.Export("pod", map[string]interface{}{
"value": myRandomPod.Pod,
})
ctx.Export("networkStorage", map[string]interface{}{
"value": testNetworkStorage.NetworkStorage,
})
ctx.Export("pod", myRandomPod)
ctx.Export("networkStorage", testNetworkStorage)
return nil
})
}
Expand Down
8 changes: 2 additions & 6 deletions docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,8 @@ The config file for your yaml must look like this:
if err != nil {
return err
}
ctx.Export("pod", map[string]interface{}{
"value": myRandomPod.Pod,
})
ctx.Export("networkStorage", map[string]interface{}{
"value": testNetworkStorage.NetworkStorage,
})
ctx.Export("pod", myRandomPod)
ctx.Export("networkStorage", testNetworkStorage)
return nil
})
}
Expand Down
8 changes: 2 additions & 6 deletions examples/go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,8 @@ func main() {
if err != nil {
return err
}
ctx.Export("pod", map[string]interface{}{
"value": myRandomPod.Pod,
})
ctx.Export("networkStorage", map[string]interface{}{
"value": testNetworkStorage.NetworkStorage,
})
ctx.Export("pod", myRandomPod)
ctx.Export("networkStorage", testNetworkStorage)
return nil
})
}

0 comments on commit a86ae3d

Please sign in to comment.