Categorygithub.com/lsongdev/smartctl-go
modulepackage
0.0.0-20250108091141-37a504aad6c4
Repository: https://github.com/lsongdev/smartctl-go.git
Documentation: pkg.go.dev

# README

smartctl-go

A simple smartctl parser written in Go.

import "github.com/lsongdev/smartctl-go/smartctl"

info, err := smartctl.Check("/dev/disk1s1")
info, err := smartctl.Open("./sda-report.json")
info, err := smartctl.Read([]byte{})

log.Println(info.ModelName)
log.Println(info.SerialNumber)
log.Println(info.SmartStatus)
log.Println(info.Temperature)
log.Println(info.PowerCycleCount)
log.Println(info.PowerOnTime)
for _, attr := range info.ATASmartAttributes.Table {
  log.Println(attr)
}

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author