1
0
Fork 0
mirror of https://github.com/Luzifer/duplicity-backup.git synced 2024-11-08 15:10:06 +00:00

Fix: Unexported constructor for private struct

This commit is contained in:
Knut Ahlers 2016-05-23 16:04:50 +02:00
parent 7a29df4122
commit d060a89862
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
3 changed files with 3 additions and 3 deletions

View file

@ -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)"

View file

@ -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{},

View file

@ -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