mirror of
https://github.com/Luzifer/duplicity-backup.git
synced 2024-12-20 18:41:21 +00:00
Fix: Unexported constructor for private struct
This commit is contained in:
parent
7a29df4122
commit
d060a89862
3 changed files with 3 additions and 3 deletions
2
Makefile
2
Makefile
|
@ -17,4 +17,4 @@ test:
|
||||||
-D errcheck
|
-D errcheck
|
||||||
|
|
||||||
install:
|
install:
|
||||||
go install -ldflags "-X main.version=$(shell git describe --tags || git rev-parse --short HEAD || echo dev)"
|
go install -a -ldflags "-X main.version=$(shell git describe --tags || git rev-parse --short HEAD || echo dev)"
|
||||||
|
|
|
@ -8,7 +8,7 @@ type messageChanWriter struct {
|
||||||
buffer []byte
|
buffer []byte
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewMessageChanWriter(outputChannel chan string) *messageChanWriter {
|
func newMessageChanWriter(outputChannel chan string) *messageChanWriter {
|
||||||
return &messageChanWriter{
|
return &messageChanWriter{
|
||||||
msgChan: outputChannel,
|
msgChan: outputChannel,
|
||||||
buffer: []byte{},
|
buffer: []byte{},
|
||||||
|
|
2
main.go
2
main.go
|
@ -168,7 +168,7 @@ func execute(config *configFile, argv []string) error {
|
||||||
}
|
}
|
||||||
}(msgChan)
|
}(msgChan)
|
||||||
|
|
||||||
output := NewMessageChanWriter(msgChan)
|
output := newMessageChanWriter(msgChan)
|
||||||
cmd := exec.Command(duplicityBinary, commandLine...)
|
cmd := exec.Command(duplicityBinary, commandLine...)
|
||||||
cmd.Stdout = output
|
cmd.Stdout = output
|
||||||
cmd.Stderr = output
|
cmd.Stderr = output
|
||||||
|
|
Loading…
Reference in a new issue