diff --git a/.travis.yml b/.travis.yml index d3a2c0d..2787d86 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,5 +20,5 @@ before_script: script: # - go test -v -race ./... # run go tests # - $HOME/gopath/bin/goveralls -service=travis-ci # run code coverage - - cd splunk/ + - cd splunk/v2 - go build diff --git a/README.md b/README.md index 1779f86..5620bcc 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ A simple and lightweight HTTP Splunk logging package for Go. Instantiates a logg ## Installation ## ```bash -go get "github.com/ZachtimusPrime/Go-Splunk-HTTP/splunk" +go get "github.com/ZachtimusPrime/Go-Splunk-HTTP/splunk/v2" ``` ## Usage ## @@ -26,7 +26,7 @@ For example: ```go package main -import "github.com/ZachtimusPrime/Go-Splunk-HTTP/splunk" +import "github.com/ZachtimusPrime/Go-Splunk-HTTP/splunk/v2" func main() { diff --git a/go.mod b/go.mod deleted file mode 100644 index ad7b1fa..0000000 --- a/go.mod +++ /dev/null @@ -1,3 +0,0 @@ -module github.com/ZachtimusPrime/Go-Splunk-HTTP - -go 1.14 diff --git a/splunk/v2/go.mod b/splunk/v2/go.mod new file mode 100644 index 0000000..22618ce --- /dev/null +++ b/splunk/v2/go.mod @@ -0,0 +1,3 @@ +module github.com/ZachtimusPrime/Go-Splunk-HTTP/splunk/v2 + +go 1.14 diff --git a/splunk/response.go b/splunk/v2/response.go similarity index 100% rename from splunk/response.go rename to splunk/v2/response.go diff --git a/splunk/response_test.go b/splunk/v2/response_test.go similarity index 100% rename from splunk/response_test.go rename to splunk/v2/response_test.go diff --git a/splunk/splunk.go b/splunk/v2/splunk.go similarity index 100% rename from splunk/splunk.go rename to splunk/v2/splunk.go diff --git a/splunk/writer.go b/splunk/v2/writer.go similarity index 100% rename from splunk/writer.go rename to splunk/v2/writer.go diff --git a/splunk/writer_test.go b/splunk/v2/writer_test.go similarity index 100% rename from splunk/writer_test.go rename to splunk/v2/writer_test.go