Debian Codegraph @

custom.go

raw symbols SCIP
1 package clipper
2
3 import (
4 "os/exec"
5 )
6
7 type Custom struct {
8 Name string
9 }
10
11 func (c *Custom) Init() error {
12 return verify(c, c.Name)
13 }
14
15 func (c *Custom) ReadAll(reg string) ([]byte, error) {
16 cmd := exec.Command(c.Name, "-o", reg)
17 return cmd.Output()
18 }
19
20 func (c *Custom) WriteAll(reg string, p []byte) error {
21 cmd := exec.Command(c.Name, "-i", reg)
22 return write(cmd, p)
23 }