aboutsummaryrefslogtreecommitdiff
path: root/file.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-04-19 13:53:30 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-04-19 13:53:30 +0200
commit8d1fc8251cba775ea1adaeac296d6e8973fc7c7e (patch)
tree4b4d6ab51fb1fa71162a5c5c0d2bb88bc5cda11b /file.go
parent51693e607e26f82b73467a0edcacab3fea70a16b (diff)
...
Diffstat (limited to 'file.go')
-rw-r--r--file.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/file.go b/file.go
index 6bff903..b1dcb01 100644
--- a/file.go
+++ b/file.go
@@ -20,7 +20,6 @@ type File struct {
const (
commentHdr = "untrusted comment:"
- verifyWith = "verify with"
sigFrom = "signature from %s"
)
@@ -40,6 +39,10 @@ func checkComment(comment string) error {
return nil
}
+func (f *File) Embedded() bool {
+ return len(f.Message) > 0
+}
+
func (f *File) ReadFrom(r io.Reader) error {
buf := bufio.NewReader(r)