Debian Codegraph @

/

debian golang-github-freddierice-go-losetup 2.0.1+ds1-1.1debian golang-github-freddierice-go-losetup-dev gomod github.com/freddierice/go-losetup/v2 debiangoinimakefilemarkdownshellyaml 18 files · 151 symbols
README (full)

go-losetup

A losetup implementation for go-lang.

how to get it

go get github.com/freddierice/go-losetup

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
}
dir debian/
file .gitignore
file LICENSE
file README.md
file constants.go
file device.go
file format.go
file go.mod
file go.sum
file info.go
file losetup.go
file losetup_test.go