Skip to content
/ uefi Public
forked from 0x5a17ed/uefi

Pure Go UEFI library for Linux and Windows

License

Notifications You must be signed in to change notification settings

ecks/uefi

This branch is 7 commits ahead of, 10 commits behind 0x5a17ed/uefi:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Hristo Asenov
Nov 16, 2022
caef65d Β· Nov 16, 2022

History

68 Commits
Oct 22, 2022
Nov 16, 2022
May 3, 2022
May 14, 2022
Nov 15, 2022
Oct 31, 2022

Repository files navigation

uefi

License: APACHE-2.0

A UEFI library written in go to interact with efivars. Compatible with Windows and Linux.

This library tries its best to follow the UEFI 2.9 specification outlined here.

πŸ“¦ Installation

$ go get -u github.com/0x5a17ed/uefi@latest

πŸ€” Usage

package main

import (
	"fmt"

	"github.com/0x5a17ed/uefi/efi/efivario"
	"github.com/0x5a17ed/uefi/efi/efivars"
)

func main() {
	c := efivario.NewDefaultContext()

	if err := efivars.BootNext.Set(c, 1); err != nil {
		fmt.Println(err)
	}
}

For a more in-depth example of how to use this library take a look at efibootcfg.

πŸ’‘ Features

  • Works on both Linux and on Windows exposing the same API
  • Extensible
  • Simple API
  • Reading individual Boot options
  • Setting next Boot option
  • Managing Boot order

About

Pure Go UEFI library for Linux and Windows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%