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.13.2
Published
Apr 25, 2024
Platform
js/wasm
Imports
1 packages
Last checked
2 minutes ago

Tools for package owners.