package urlutil

import "github.com/moby/buildkit/util/urlutil"

Index

Functions

func RedactCredentials

func RedactCredentials(s string) string

RedactCredentials takes a URL and redacts username and password from it. e.g. "https://user:password@host.tld/path.git" will be changed to "https://xxxxx:xxxxx@host.tld/path.git".

Source Files

redact.go

Version
v0.11.2
Published
Jan 26, 2023
Platform
js/wasm
Imports
1 packages
Last checked
5 minutes ago

Tools for package owners.