cri-o/vendor/github.com/mtrmac/gpgme/examples/decrypt.go
Mrunal Patel 8e5b17cf13 Switch to github.com/golang/dep for vendoring
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2017-01-31 16:45:59 -08:00

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)
}
}