shortcut

package module
v0.0.0-...-0b63d57 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: MIT Imports: 2 Imported by: 0

README

go-shortcut

A golang library for creating shortcuts on Windows and Mac

(Mac version in progress...)

package main

import (
    "github.com/go-ole/go-ole"
    "github.com/justintaylor-dev/go-shortcut"
)

func main() {
    src := "source.exe"
    dir := "path/to/source"
    dst := "path/to/dst.lnk"
    args := ""

    // Must initialize ole and defer the uninitialize for Windows
    ole.CoInitialize(0)
    defer ole.CoUninitialize()
    MakeLink(src, dst, dir, args)
}



$ go get -u "github.com/justintaylor-dev/go-shortcut"

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeLink(src, dst, dir, args string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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