urlerr

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package urlerr keeps a password out of an error about a URL.

The error from url.Parse repeats the whole URL, password included. A target URL such as redis://user:secret@host can reach a log, a report or an MCP reply that way.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Inner

func Inner(err error) error

Inner returns err without the URL that url.Parse put in it. Any other error is returned as it is.

func Mask

func Mask(raw string) string

Mask hides the password of a user:password@ part in raw, so the text can go into a message about that URL. It also handles a bare user:password@host:port.

Types

This section is empty.

Jump to

Keyboard shortcuts

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