From 5c4be248571f1c8402372986d57f3c7c6e02d1f4 Mon Sep 17 00:00:00 2001 From: Robert Malhotra Date: Tue, 30 Sep 2025 16:41:32 -0400 Subject: [PATCH] changed pkg name --- README.md | 12 ++++++------ builder/builder_test.go | 2 +- go.mod | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index cfb03f8..37590b1 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# go-cql-text +# go-cql2 -[![Go Report Card](https://goreportcard.com/badge/github.com/robert-malhotra/go-cql-text)](https://goreportcard.com/report/github.com/robert-malhotra/go-cql-text) -[![GoDoc](https://godoc.org/github.com/robert-malhotra/go-cql-text/text?status.svg)](https://godoc.org/github.com/robert-malhotra/go-cql-text/text) +[![Go Report Card](https://goreportcard.com/badge/github.com/robert-malhotra/go-cql2)](https://goreportcard.com/report/github.com/robert-malhotra/go-cql2) +[![GoDoc](https://godoc.org/github.com/robert-malhotra/go-cql2/text?status.svg)](https://godoc.org/github.com/robert-malhotra/go-cql2/text) -`go-cql-text` is a Go library that parses [CQL2 (Common Query Language) text expressions](https://www.ogc.org/standards/cql2/) into the same Abstract Syntax Tree (AST) used by [`go-ogc`](https://github.com/planetlabs/go-ogc). +`go-cql2` is a Go library that parses [CQL2 (Common Query Language) text expressions](https://www.ogc.org/standards/cql2/) into the same Abstract Syntax Tree (AST) used by [`go-ogc`](https://github.com/planetlabs/go-ogc). This allows seamless handling of both CQL2 JSON and CQL2 text in Go. ## Features @@ -23,7 +23,7 @@ This allows seamless handling of both CQL2 JSON and CQL2 text in Go. ## Builder Helpers -The `builder` subpackage (`github.com/robert-malhotra/go-cql-text/builder`) offers +The `builder` subpackage (`github.com/robert-malhotra/go-cql2/builder`) offers generics-based constructors that make it easy to assemble the [`go-ogc/filter`](https://github.com/planetlabs/go-ogc/tree/main/filter) AST without manually instantiating nodes or performing type assertions. @@ -42,7 +42,7 @@ import ( "time" "github.com/planetlabs/go-ogc/filter" - cql "github.com/robert-malhotra/go-cql-text/builder" + cql "github.com/robert-malhotra/go-cql2/builder" ) func buildFilter() *filter.Filter { diff --git a/builder/builder_test.go b/builder/builder_test.go index a53c02a..e5dd64a 100644 --- a/builder/builder_test.go +++ b/builder/builder_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - cql "github.com/robert-malhotra/go-cql-text/builder" + cql "github.com/robert-malhotra/go-cql2/builder" ) // ---------- helpers ---------- diff --git a/go.mod b/go.mod index 9d0fb99..c940fe0 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/robert-malhotra/go-cql-text +module github.com/robert-malhotra/go-cql2 go 1.23.4