win32

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: GPL-2.0, LGPL-2.1 Imports: 2 Imported by: 4

README

go-win32-utils

This library contains some useful calls to win32 API that are not available on the standard golang library.

This is used mainly on Arduino software, so the main goal is to provide the functions needed to run arduino-builder, Arduino IDE or any other Arduino-related software.

Documentation

Overview

win32 is a collection of useful bindings to Win32 API that are not available in the standard golang windows/syscall package.

Example
package main

import (
	"fmt"

	win32 "github.com/arduino/go-win32-utils"
)

func main() {
	d, err := win32.GetDocumentsFolder()
	fmt.Printf("Documents       folder: [err=%v] %s\n", err, d)
	d, err = win32.GetLocalAppDataFolder()
	fmt.Printf("Local AppData   folder: [err=%v] %s\n", err, d)
	d, err = win32.GetRoamingAppDataFolder()
	fmt.Printf("Roaming AppData folder: [err=%v] %s\n", err, d)
}

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDocumentsFolder

func GetDocumentsFolder() (string, error)

GetDocumentsFolder returns the Document folder

func GetLocalAppDataFolder

func GetLocalAppDataFolder() (string, error)

GetLocalAppDataFolder returns the LocalAppData folder

func GetRoamingAppDataFolder

func GetRoamingAppDataFolder() (string, error)

GetRoamingAppDataFolder returns the AppData folder

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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