urlclip

package module
v0.0.0-...-5521dcb Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 13 Imported by: 0

README

urlclip

Url reader from clipboard and save it like deamon.

Features

  • Url filter with regex pattern.
  • Notify every url is captured.
  • Run in System tray

License

Copyright (c) 2024 zeindevs. Licensed under the MIT License.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alert

func Alert(title, msg string) error

func CheckData

func CheckData(url string) bool

func GetTitle

func GetTitle(ctx context.Context, url string) (string, error)

func GetTitleWg

func GetTitleWg(ctx context.Context, url *Url, throttle chan struct{}, result chan<- *Url, wg *sync.WaitGroup)

func Notify

func Notify(title, msg string) error

func ParseTitle

func ParseTitle(r io.Reader) (string, error)

func ReadData

func ReadData(filename string) error

func Run

func Run(quitCh chan os.Signal, active *bool)

func SaveData

func SaveData(filename string, url []*Url) error

Types

type Url

type Url struct {
	URL       string    `json:"url"`
	Title     string    `json:"title"`
	CreatedAt time.Time `json:"created_at"`
}

Directories

Path Synopsis
cmd
cli command
systray command

Jump to

Keyboard shortcuts

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