git » spf » commit 36d7128

Add Go modules support

author Alberto Bertogli
2020-05-22 21:06:30 UTC
committer Alberto Bertogli
2020-05-22 21:17:55 UTC
parent f55fe9555a75598839b82a8eb416e7a082113ee9

Add Go modules support

This patch adds Go modules support, so users can incorporate this
package more easily when using them.

This also makes the "v1" branch obsolete, as now versioning can be done
properly with the modules system. Documentation is updated to reflect
this.

README.md +0 -3
go.mod +5 -0
go.sum +3 -0

diff --git a/README.md b/README.md
index 91cc3ae..7cf6f3a 100644
--- a/README.md
+++ b/README.md
@@ -36,9 +36,6 @@ details.
 The API should be considered stable. Major version changes will be announced
 to the mailing list (details below).
 
-Branch v1 will only have backwards-compatible changes made to it.
-There are no plans for v2 at the moment.
-
 
 ## Contact
 
diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..31a8460
--- /dev/null
+++ b/go.mod
@@ -0,0 +1,5 @@
+module blitiri.com.ar/go/spf
+
+go 1.14
+
+require gopkg.in/yaml.v2 v2.3.0
diff --git a/go.sum b/go.sum
new file mode 100644
index 0000000..8fabe8d
--- /dev/null
+++ b/go.sum
@@ -0,0 +1,3 @@
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
+gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=