refactor: Moved types into uri folder
This commit is contained in:
		@@ -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 types.{type Uri, Uri}
 | 
					 | 
				
			||||||
import uri/internal/parser
 | 
					import uri/internal/parser
 | 
				
			||||||
import uri/internal/utils
 | 
					import uri/internal/utils
 | 
				
			||||||
 | 
					import uri/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.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@ import gleam/string
 | 
				
			|||||||
import splitter
 | 
					import splitter
 | 
				
			||||||
import uri/internal/utils
 | 
					import uri/internal/utils
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import types.{type Uri, Uri, empty_uri}
 | 
					import uri/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) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,7 @@ import gleam/option.{type Option, None, Some}
 | 
				
			|||||||
import gleam/result
 | 
					import gleam/result
 | 
				
			||||||
import gleam/string
 | 
					import gleam/string
 | 
				
			||||||
import splitter.{type Splitter}
 | 
					import splitter.{type Splitter}
 | 
				
			||||||
import types.{type Uri, Uri}
 | 
					import uri/types.{type Uri, Uri}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pub const scheme_port = [
 | 
					pub const scheme_port = [
 | 
				
			||||||
  #("http", 80),
 | 
					  #("http", 80),
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,8 +2,8 @@ import gleam/list
 | 
				
			|||||||
import gleam/option.{None, Some}
 | 
					import gleam/option.{None, Some}
 | 
				
			||||||
import gleeunit/should
 | 
					import gleeunit/should
 | 
				
			||||||
import startest.{describe, it}
 | 
					import startest.{describe, it}
 | 
				
			||||||
import types.{Uri, empty_uri}
 | 
					 | 
				
			||||||
import uri
 | 
					import uri
 | 
				
			||||||
 | 
					import uri/types.{Uri, empty_uri}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pub fn main() {
 | 
					pub fn main() {
 | 
				
			||||||
  startest.run(startest.default_config())
 | 
					  startest.run(startest.default_config())
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user