Commit d999ccb 1 parent 0a29e39 commit d999ccb Copy full SHA for d999ccb
File tree 6 files changed +11
-10
lines changed
6 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
1
package main
2
2
3
3
import (
4
- "backmeup/archiver"
5
- "backmeup/config"
6
4
"fmt"
7
- "github.com/akamensky/argparse"
8
- "github.com/bmatcuk/doublestar/v2"
9
5
"io/fs"
10
6
"log"
11
7
"os"
12
8
"path/filepath"
13
9
"runtime"
14
10
"strings"
15
11
"time"
12
+
13
+ "github.com/akamensky/argparse"
14
+ "github.com/bmatcuk/doublestar/v2"
15
+ "github.com/d-Rickyy-b/backmeup/internal/archiver"
16
+ "github.com/d-Rickyy-b/backmeup/internal/config"
16
17
)
17
18
18
19
var VERBOSE bool
File renamed without changes.
Original file line number Diff line number Diff line change 1
- module backmeup
1
+ module github.com/d-Rickyy-b/ backmeup
2
2
3
3
go 1.16
4
4
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ package archiver
2
2
3
3
import (
4
4
"archive/tar"
5
- "backmeup/config"
6
5
"errors"
7
6
"fmt"
8
7
"github.com/cheggaaa/pb/v3"
8
+ "github.com/d-Rickyy-b/backmeup/internal/config"
9
9
"github.com/klauspost/compress/gzip"
10
10
"github.com/klauspost/compress/zip"
11
11
"io"
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
package config
2
2
3
3
import (
4
- "backmeup/bkperrors"
5
- "gopkg.in/yaml.v2"
6
- "io/ioutil"
7
4
"log"
8
5
"os"
6
+
7
+ "github.com/d-Rickyy-b/backmeup/internal/bkperrors"
8
+ "gopkg.in/yaml.v2"
9
9
)
10
10
11
11
type Unit struct {
@@ -153,7 +153,7 @@ func (config *Config) validate() error {
153
153
// ReadConfig reads a config file from a given path
154
154
func ReadConfig (configPath string ) (Config , error ) {
155
155
log .Printf ("Trying to read config file '%s'!" , configPath )
156
- data , err := ioutil .ReadFile (configPath )
156
+ data , err := os .ReadFile (configPath )
157
157
158
158
if err != nil {
159
159
log .Println ("Can't read config file! Exiting!" )
You can’t perform that action at this time.
0 commit comments