# README
The itrdsn package is a small wrapper to get the hard disk serial number, currently supported Windows and Linux operating systems.
Installation
go get -u github.com/itrepablik/itrdsn
Usage
package main
import (
"log"
"fmt"
"github.com/itrepablik/itrdsn"
"github.com/itrepablik/itrlog"
)
func main() {
hddSerialNo, err := itrdsn.GetDiskSerialNo()
if err != nil {
itrlog.Fatalw("error getting hard disk serial number: %v", err)
}
fmt.Println("hddSerialNo: ", hddSerialNo)
}
Subscribe to Maharlikans Code Youtube Channel:
Please consider subscribing to my Youtube Channel to recognize my work on this package. Thank you for your support! https://www.youtube.com/channel/UCdAVUmldU9Jn2VntuQChHqQ/
License
Code is distributed under MIT license, feel free to use it in your proprietary projects as well.
# Functions
GetDiskSerialNo gets the hard disk serial number.