Explorar el Código

docs: add instructions for getting and importing the package

Rob Figueiredo hace 6 años
padre
commit
e843a09e5b
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  1. 12 0
      doc.go

+ 12 - 0
doc.go

@@ -1,6 +1,18 @@
 /*
 Package cron implements a cron spec parser and job runner.
 
+Installation
+
+To download the specific tagged release, run:
+
+	go get github.com/robfig/cron/v3@v3.0.0
+
+Import it in your program as:
+
+	import "github.com/robfig/cron/v3"
+
+It requires Go 1.11 or later due to usage of Go Modules.
+
 Usage
 
 Callers may register Funcs to be invoked on a given schedule.  Cron will run