-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactored code * Replaced Travis with Github Actions * Increased file sample size and improved file path logic * Improved doc * Go version upgrade and library upgrades
- Loading branch information
Showing
17 changed files
with
339 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* | ||
Propagates file renames, movements and timestamp changes before rsync runs | ||
Visit: https://github.com/m-manu/rsync-sidekick/ | ||
*/ | ||
package main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package entity | ||
|
||
// StringSet is a set of string elements | ||
type StringSet map[string]struct{} | ||
|
||
// StringSetOf creates a set with given elements | ||
func StringSetOf(s ...string) StringSet { | ||
set := make(StringSet, len(s)) | ||
for i := 0; i < len(s); i++ { | ||
set[s[i]] = struct{}{} | ||
} | ||
return set | ||
} | ||
|
||
// NewStringSet creates a set of given size | ||
func NewStringSet(size int) StringSet { | ||
return make(StringSet, size) | ||
} | ||
|
||
// Add adds element to set | ||
func (set StringSet) Add(e string) { | ||
set[e] = struct{}{} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
module github.com/m-manu/rsync-sidekick | ||
|
||
go 1.16 | ||
go 1.17 | ||
|
||
require ( | ||
github.com/stretchr/testify v1.7.0 | ||
golang.org/x/text v0.3.6 | ||
golang.org/x/text v0.3.7 | ||
) | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.0 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.