diff --git a/README.md b/README.md index 32fbbf6..e4b94e6 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # xk6-file -[k6](https://github.com/loadimpact/k6) extension for writing files, implemented using the +[k6](https://go.k6.io/k6) extension for writing files, implemented using the [xk6](https://github.com/k6io/xk6) system. ## Build ```shell -xk6 build v0.31.1 --with github.com/avitalique/xk6-file +xk6 build --with github.com/avitalique/xk6-file@latest ``` ## Example @@ -17,4 +17,4 @@ export default function () { file.writeString(filepath, 'New file. First line.\n'); file.appendString(filepath, `Second line. VU: ${__VU} - ITER: ${__ITER}`); } -``` \ No newline at end of file +``` diff --git a/file.go b/file.go index e02fb88..12decbf 100644 --- a/file.go +++ b/file.go @@ -7,7 +7,7 @@ package file import ( "os" - "github.com/loadimpact/k6/js/modules" + "go.k6.io/k6/js/modules" ) func init() { diff --git a/go.mod b/go.mod index e147cfc..1ca9915 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/avitalique/xk6-file go 1.16 -require github.com/loadimpact/k6 v0.31.1 +require go.k6.io/k6 v0.32.0