From 23b0960f42705e448934e6e64910ab33adf4f36a Mon Sep 17 00:00:00 2001 From: Nick Cruess <97041519+nickcruess-soda@users.noreply.github.com> Date: Mon, 1 Apr 2024 15:57:01 -0500 Subject: [PATCH] Fix links to spec (#6) The old spec site at http://ndjson.org/ is no longer active -- or at least not in a relevant capacity. The spec is now maintained in this Github repository. This quick PR replaces links to the old site with links to the repository. --- README.md | 2 +- doc.go | 2 +- reader.go | 2 +- writer.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index af869fe..2cf3758 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Build Status](https://github.com/olivere/ndjson/workflows/Test/badge.svg)](https://github.com/olivere/ndjson/actions) The `ndjson` package implements reading and writing files according -to the [ndjson specification](http://ndjson.org/). +to the [ndjson specification](https://github.com/ndjson/ndjson-spec/). Example: diff --git a/doc.go b/doc.go index d9a76f2..4d99374 100644 --- a/doc.go +++ b/doc.go @@ -1,5 +1,5 @@ /* Package ndjson implements reading and writing files according to -the ndjson specification (http://ndjson.org/). +the ndjson specification (https://github.com/ndjson/ndjson-spec/). */ package ndjson diff --git a/reader.go b/reader.go index 4eb05d0..1b2ed69 100644 --- a/reader.go +++ b/reader.go @@ -11,7 +11,7 @@ var ( ) // Reader allows reading line-oriented JSON data following the -// ndjson spec at http://ndjson.org/. +// ndjson spec at https://github.com/ndjson/ndjson-spec/. type Reader struct { r io.Reader s *bufio.Scanner diff --git a/writer.go b/writer.go index 26f9c76..8111364 100644 --- a/writer.go +++ b/writer.go @@ -10,7 +10,7 @@ var ( ) // Writer implements writing line-oriented JSON data following the -// ndjson spec at http://ndjson.org/. +// ndjson spec at https://github.com/ndjson/ndjson-spec/. type Writer struct { w io.Writer enc *json.Encoder