{"id":72282,"library":"freddierice-go-losetup-v1","title":"Go Losetup v1","description":"Go bindings for Linux loop device setup, allowing creation and management of loop devices.","status":"active","version":"1.0.0-20170407175016-fc9adea44124","language":"go","source_language":null,"source_url":"https://github.com/freddierice/go-losetup","tags":["linux","loop-device","disk","system"],"install":[{"cmd":"go get gopkg.in/freddierice/go-losetup.v1","lang":"bash","label":"Install gopkg.in/freddierice/go-losetup.v1"}],"dependencies":[],"imports":[{"symbol":"losetup","correct":"gopkg.in/freddierice/go-losetup.v1"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"gopkg.in/freddierice/go-losetup.v1\"\n)\n\nfunc main() {\n\tdev, err := losetup.Attach(\"/path/to/image.img\", 0, false)\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\tdefer dev.Detach()\n\tfmt.Println(\"Loop device:\", dev.Path())\n}","lang":"go","description":"Attach a loop device to a disk image"},"warnings":[{"fix":"Run your program with sudo or appropriate capabilities.","message":"This package is Linux-specific and requires root privileges for loop device operations.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'allow':11 'bind':5 'creation':12 'devic':9,17,21 'disk':22 'go':1,4 'linux':7,18 'loop':8,16,20 'loop-devic':19 'losetup':2 'manag':14 'setup':10 'system':23 'v1':3","created_at":"2026-06-17T18:37:16.122666+00:00","updated_at":"2026-06-17T18:37:16.122666+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/freddierice/go-losetup","github":"https://github.com/freddierice/go-losetup","docs":"https://pkg.go.dev/gopkg.in/freddierice/go-losetup.v1#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}