Skip to content

A losetup implementation for go-lang

License

Notifications You must be signed in to change notification settings

wobito/go-losetup

 
 

Repository files navigation

go-losetup

A losetup implementation for go-lang.

how to get it

go get github.com/freddierice/go-losetup/v2

example usage

// attach a raw file to a loop device
dev, err := losetup.Attach("rawfile.img", 0, false)
if err != nil {
	// error checking
}

fmt.Printf("attached rawfile.img to %v\n", dev.Path())

err := dev.Detach()
if err != nil {
	// error checking
}

About

A losetup implementation for go-lang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%