Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "interactive-decode-clipboard", Short: "Base64 Interactive Decode from Clipboard", Aliases: []string{"idc"}, Args: cobra.NoArgs, Run: func(c *cobra.Command, args []string) { clipboardDataOld := "" for { clipboardData, err := clipboard.ReadAll() if err != nil { log.Fatal(err) } if clipboardData != clipboardDataOld { clipboardDataOld = clipboardData dataPlainText, err := base64.StdEncoding.DecodeString(clipboardData) if err == nil { fmt.Println(string(dataPlainText)) fmt.Println("----------------------------------------------------") } } time.Sleep(1 * time.Second) } }, }
View Source
var FlagNamespace string
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.