url

package
v0.0.0-...-c5bcced Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

The parse/url package parses all parts of a url.

var url = require('parse/url');
var result = url.Parse("http://user:pass@abcum.com/path/to/file?some=one&other=two#fragment-here")
console.log(result);

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(orb *orbit.Orbit) interface{}

Types

type Info

type Info struct {
	Scheme   string              `console:"scheme" codec:"scheme"`
	User     string              `console:"user" codec:"user"`
	Pass     string              `console:"pass" codec:"pass"`
	Host     string              `console:"host" codec:"host"`
	Port     string              `console:"port" codec:"port"`
	Domain   string              `console:"domain" codec:"domain"`
	Path     string              `console:"path" codec:"path"`
	Query    map[string][]string `console:"query" codec:"query"`
	Querys   string              `console:"querys" codec:"querys"`
	Fragment string              `console:"fragment" codec:"fragment"`
}

type Module

type Module struct {
	// contains filtered or unexported fields
}

func (*Module) Parse

func (this *Module) Parse(addr string) *Info

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL