forked from barak/tarpoon
Add glide.yaml and vendor deps
This commit is contained in:
parent
db918f12ad
commit
5b3d5e81bd
18880 changed files with 5166045 additions and 1 deletions
19
vendor/github.com/mtrmac/gpgme/examples/decrypt.go
generated
vendored
Normal file
19
vendor/github.com/mtrmac/gpgme/examples/decrypt.go
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue