8e5b17cf13
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
19 lines
249 B
Go
19 lines
249 B
Go
package main
|
|
|
|
import (
|
|
"io"
|
|
"os"
|
|
|
|
"github.com/proglottis/gpgme"
|
|
)
|
|
|
|
func main() {
|
|
plain, err := gpgme.Decrypt(os.Stdin)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
defer plain.Close()
|
|
if _, err := io.Copy(os.Stdout, plain); err != nil {
|
|
panic(err)
|
|
}
|
|
}
|