query

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2016 License: BSD-2-Clause Imports: 4 Imported by: 16

Documentation

Overview

Package query implements a faster single-purpose URL Query parser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Query

type Query struct {
	Infohashes []string
	Params     map[string]string
}

Query represents a parsed URL.Query.

func New

func New(query string) (*Query, error)

New parses a raw url query.

func (*Query) Uint64

func (q *Query) Uint64(key string) (uint64, error)

Uint64 is a helper to obtain a uint of any length from a Query. After being called, you can safely cast the uint64 to your desired length.

Jump to

Keyboard shortcuts

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