{"id":52009,"library":"google-renameio","title":"renameio","description":"Package renameio provides a way to atomically create or replace a file or symbolic link.","status":"active","version":"1.0.1","language":"go","source_language":null,"source_url":"https://github.com/google/renameio","tags":["atomic","file","rename","filesystem"],"install":[{"cmd":"go get github.com/google/renameio","lang":"bash","label":"Install github.com/google/renameio"}],"dependencies":[],"imports":[{"symbol":"renameio","correct":"github.com/google/renameio"}],"quickstart":{"code":"package main\n\nimport (\n\t\"github.com/google/renameio\"\n)\n\nfunc main() {\n\tf, _ := renameio.TempFile(\"\", \"example\")\n\tf.Write([]byte(\"hello\"))\n\tf.CloseAtomicallyReplace()\n}","lang":"go","description":"Atomically write data to a file using a temporary file and rename."},"warnings":[],"env_vars":null,"search_vec":"'atom':8,17 'creat':9 'file':13,18 'filesystem':20 'link':16 'packag':2 'provid':4 'renam':19 'renameio':1,3 'replac':11 'symbol':15 'way':6","created_at":"2026-06-15T06:37:50.568817+00:00","updated_at":"2026-06-15T06:37:50.568817+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/google/renameio","github":"https://github.com/google/renameio","docs":"https://pkg.go.dev/github.com/google/renameio#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-15","next_check":"2026-12-12","install_tag":null}}