urlbuilder

package
v0.0.0-...-b91b1e7 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: BSD-2-Clause Imports: 1 Imported by: 0

README

Url builder

Building a URL is best done using url.URL type. If the operation is done repeatedly, returning the string or the url is equivalent and the *url.URL should be prefered.

src>go test -bench=. ./urlbuilder

Results

go version go1.12.2 windows/amd64
pkg: github.com/iWdGo/GoCompilerEfficiency/src/urlbuilder
BenchmarkGetAppString-4          1000000              1227 ns/op
BenchmarkGetAppUrl-4             1000000              1221 ns/op
PASS

Documentation

Overview

urlbuilder evaluates any difference between returning a url using the type or a string

Jump to

Keyboard shortcuts

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