https://github.com/threez/blockdev
List linux block devices in Go
https://github.com/threez/blockdev
Last synced: 9 months ago
JSON representation
List linux block devices in Go
- Host: GitHub
- URL: https://github.com/threez/blockdev
- Owner: threez
- License: apache-2.0
- Created: 2019-07-24T18:43:57.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-31T19:52:46.000Z (almost 7 years ago)
- Last Synced: 2025-04-01T13:16:20.105Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# blockdev
[](https://godoc.org/github.com/threez/blockdev) []()
List linux block devices in Go.
## Usage
package main
import (
"fmt"
"context"
"github.com/threez/blockdev"
)
func main() {
devices, err := blockdev.List(context.Background())
if err != nil {
panic(err)
}
fmt.Println("Devices", devices)
}