+14
-8
lines changedFilter options
+14
-8
lines changed Original file line number Diff line number Diff line change
@@ -27,10 +27,11 @@ package main
27
27
28
28
import (
29
29
"fmt"
30
-
"github.com/anmitsu/go-shlex"
31
30
"os"
32
31
"os/exec"
33
32
"strings"
33
+
34
+
"github.com/anmitsu/go-shlex"
34
35
)
35
36
36
37
func hookCommand(cmd string, logPrefix string) error {
Original file line number Diff line number Diff line change
@@ -27,11 +27,11 @@ package main
27
27
28
28
import (
29
29
"fmt"
30
-
"github.com/anmitsu/go-shlex"
31
30
"io"
32
-
"io/ioutil"
33
31
"os"
34
32
"strings"
33
+
34
+
"github.com/anmitsu/go-shlex"
35
35
)
36
36
37
37
// Read the input file and return all lines that look like legacy configuration
Original file line number Diff line number Diff line change
@@ -28,9 +28,10 @@ package main
28
28
import (
29
29
"bytes"
30
30
"fmt"
31
+
"testing"
32
+
31
33
"github.com/google/go-cmp/cmp"
32
34
"github.com/google/go-cmp/cmp/cmpopts"
33
-
"testing"
34
35
)
35
36
36
37
func TestReadLegacyConf(t *testing.T) {
Original file line number Diff line number Diff line change
@@ -23,6 +23,7 @@
23
23
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24
24
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
25
26
+
//go:build !windows
26
27
// +build !windows
27
28
28
29
package main
Original file line number Diff line number Diff line change
@@ -23,6 +23,7 @@
23
23
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24
24
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
25
26
+
//go:build windows
26
27
// +build windows
27
28
28
29
package main
Original file line number Diff line number Diff line change
@@ -29,10 +29,11 @@ import (
29
29
"database/sql"
30
30
"errors"
31
31
"fmt"
32
-
"github.com/jackc/pgtype"
33
-
_ "github.com/jackc/pgx/v4/stdlib"
34
32
"strings"
35
33
"time"
34
+
35
+
"github.com/jackc/pgtype"
36
+
_ "github.com/jackc/pgx/v4/stdlib"
36
37
)
37
38
38
39
type pg struct {
Original file line number Diff line number Diff line change
@@ -27,12 +27,13 @@ package main
27
27
28
28
import (
29
29
"fmt"
30
-
"github.com/google/go-cmp/cmp"
31
-
"github.com/google/go-cmp/cmp/cmpopts"
32
30
"os"
33
31
"regexp"
34
32
"strings"
35
33
"testing"
34
+
35
+
"github.com/google/go-cmp/cmp"
36
+
"github.com/google/go-cmp/cmp/cmpopts"
36
37
)
37
38
38
39
var (
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4