rule

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

Package rule wraps heuristics to choose browsers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

type Rule struct {
	Label   string
	Command string
	Args    []string
	URIs    []string
}

Rule defines what to do for a URL

func (*Rule) GetCommand

func (r *Rule) GetCommand() (command string, args []string)

GetCommand returns the browser key for the rule

func (*Rule) Match

func (r *Rule) Match(host string) bool

Match matches

Jump to

Keyboard shortcuts

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