safebrowse

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package safebrowse provides secure URL validation and browser opening. All validation rules apply uniformly across platforms to prevent injection attacks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(ctx context.Context, rawURL string) error

Open validates and opens a URL in the system browser.

func OpenWithParams

func OpenWithParams(ctx context.Context, rawURL string, params map[string]string) error

OpenWithParams validates and opens a URL with query parameters.

func ValidateGitHubPRURL

func ValidateGitHubPRURL(rawURL string) error

ValidateGitHubPRURL validates URLs matching https://github.com/{owner}/{repo}/pull/{number}[?goose=value]

func ValidateURL

func ValidateURL(rawURL string) error

ValidateURL performs strict security validation on a URL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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