git » log » commit 03504c6

Add Go modules support

author Alberto Bertogli
2020-05-22 17:14:19 UTC
committer Alberto Bertogli
2020-05-22 17:14:19 UTC
parent 35eb867b878292d38bb2b01f4a4f4e7bd3919bc0

Add Go modules support

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

Since the package has no dependencies, the module itself is quite easy.

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 +5 -3
go.mod +3 -0

diff --git a/README.md b/README.md
index 361ea8a..245d3a4 100644
--- a/README.md
+++ b/README.md
@@ -29,10 +29,12 @@ if log.V(3) {  // only entered if -v was >= 3.
 
 ## Status
 
-The API should be considered stable.
+The API should be considered generally stable, and no backwards-incompatible
+changes are expected.
 
-Branch v1 will only have backwards-compatible changes made to it.
-There are no plans for v2 at the moment.
+Some specific symbols are experimental, and are marked as such in their
+documentation.  Those might see backwards-incompatible changes, including
+removing them entirely.
 
 
 ## Contact
diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..8046976
--- /dev/null
+++ b/go.mod
@@ -0,0 +1,3 @@
+module blitiri.com.ar/go/log
+
+go 1.14