Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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