Skip to content

Instantly share code, notes, and snippets.

@khyberspache
Created December 23, 2020 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khyberspache/16006c0d42e046cff1bbe1e5789aa701 to your computer and use it in GitHub Desktop.
Save khyberspache/16006c0d42e046cff1bbe1e5789aa701 to your computer and use it in GitHub Desktop.
Module capability definition file for PneumaEX
package main
import ()
var (
ModuleName = "collect"
Functions = map[string]func(args []string) ([]byte, int){
"captureClipboard": captureClipboard,
}
ExecFunctions = map[string]func(args string) (){
"GoCapture": GoClipboard,
}
)
func captureClipboard(args []string) ([]byte, int) {
// setup and do clipboard capture
return []byte("We have captured all the things"), 0
}
func GoCapture(args string) {
// args is a string so you might need to parse if you're sending in multiple flags
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment