Documentation ¶
Overview ¶
Package nvram provides an interface to the Mac NVRAM chips on OS X.
It's built upon the heavily stripped C code of the native nvram tool.
The only type supported for the values is data (arbitrary strings in Go) both reading and writing. Names must be alphanumeric.
Setting requires superuser privileges.
Example ¶
res, err := Get("filippo") if err != nil { log.Fatalln(err.Error()) } log.Printf("% x\n", res) err = Set("filippo", "\xff\x0042è\x00\xff") if err != nil { log.Fatalln(err.Error()) } log.Println("Set done") res, err = Get("filippo") if err != nil { log.Fatalln(err.Error()) } log.Printf("% x\n", res)
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.