deeplink

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package deeplink registers a custom URL scheme (myapp://) so links launch or wake the app. Windows uses HKCU\Software\Classes; Linux a x-scheme-handler .desktop entry; macOS declares the scheme in the .app Info.plist at bundle time (so runtime Register is a no-op there). Handling: the OS launches the app with the URL as an argument — on first launch it's in os.Args, and on a running app it arrives via single-instance forwarding.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(scheme, appName, exePath string) error

Register associates scheme with exePath so the OS routes <scheme>:// URLs to the app. Best-effort; unsupported platforms return errors.ErrUnsupported.

func SchemeURL

func SchemeURL(scheme string, args []string) string

SchemeURL returns the first arg that is a <scheme>:// URL, or "".

Types

This section is empty.

Jump to

Keyboard shortcuts

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