refactor: Renamed as gluri

This commit is contained in:
2025-09-09 12:42:53 +01:00
parent 1779522387
commit 7dce9edf72
7 changed files with 11 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
name = "uri" name = "gluri"
version = "1.0.0" version = "1.0.0"
# Fill out these fields if you intend to generate HTML documentation or publish # Fill out these fields if you intend to generate HTML documentation or publish

View File

@@ -4,9 +4,9 @@ import gleam/list
import gleam/option.{Some} import gleam/option.{Some}
import gleam/string import gleam/string
import gleam/uri import gleam/uri
import uri/internal/parser import gluri/internal/parser
import uri/internal/utils import gluri/internal/utils
import uri/types.{type Uri, Uri} import gluri/types.{type Uri, Uri}
/// Parses a string to the RFC3986 standard. /// Parses a string to the RFC3986 standard.
/// `Error` is returned if it fails parsing. /// `Error` is returned if it fails parsing.

View File

@@ -4,10 +4,10 @@ import gleam/list.{Continue, Stop}
import gleam/option.{None, Some} import gleam/option.{None, Some}
import gleam/result import gleam/result
import gleam/string import gleam/string
import gluri/internal/utils
import splitter import splitter
import uri/internal/utils
import uri/types.{type Uri, Uri, empty_uri} import gluri/types.{type Uri, Uri, empty_uri}
pub fn parse(uri: String) -> Result(Uri, Nil) { pub fn parse(uri: String) -> Result(Uri, Nil) {
case parse_scheme(uri) { case parse_scheme(uri) {

View File

@@ -4,8 +4,8 @@ import gleam/list
import gleam/option.{type Option, None, Some} import gleam/option.{type Option, None, Some}
import gleam/result import gleam/result
import gleam/string import gleam/string
import gluri/types.{type Uri, Uri}
import splitter.{type Splitter} import splitter.{type Splitter}
import uri/types.{type Uri, Uri}
pub const scheme_port = [ pub const scheme_port = [
#("http", 80), #("http", 80),

View File

@@ -1,9 +1,9 @@
import gleam/list import gleam/list
import gleam/option.{None, Some} import gleam/option.{None, Some}
import gleeunit/should import gleeunit/should
import gluri as uri
import gluri/types.{Uri, empty_uri}
import startest.{describe, it} import startest.{describe, it}
import uri
import uri/types.{Uri, empty_uri}
pub fn main() { pub fn main() {
startest.run(startest.default_config()) startest.run(startest.default_config())

View File

@@ -4,9 +4,9 @@
// import splitter // import splitter
// import types.{Uri} // import types.{Uri}
// import uri import gluri as uri
pub fn main() { pub fn main() {
// uri.parse_query("a+c=1%23&b=2") |> echo uri.parse("http://my_host.com") |> echo
Nil Nil
} }