dsn

package
v8.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package dsn provides utilities for parsing and formatting DSNs (Data Source Names).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StripSchemeFromURL

func StripSchemeFromURL(urlstr string) string

StripSchemeFromURL is a helper function that strips the scheme from the provided URL string.

Example:

StripSchemeFromURL("mysql://user:password@tcp(localhost:3306)/dbname") // user:password@tcp(localhost:3306)/dbname

Types

This section is empty.

Jump to

Keyboard shortcuts

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