{"id":71791,"library":"getlantern-go-update","title":"Go Update","description":"Package go-update allows a program to update itself by replacing its executable file with a new version.","status":"active","version":"0.0.0-20230221120840-8d795213a8bc","language":"go","source_language":null,"source_url":"https://github.com/getlantern/go-update","tags":["self-update","binary-patching","code-signing"],"install":[{"cmd":"go get github.com/getlantern/go-update","lang":"bash","label":"Install github.com/getlantern/go-update"}],"dependencies":[],"imports":[{"symbol":"update","correct":"github.com/getlantern/go-update"}],"quickstart":{"code":"package main\n\nimport (\n\t\"github.com/getlantern/go-update\"\n)\n\nfunc main() {\n\terr := update.New().FromUrl(\"https://example.com/new-binary\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n}","lang":"go","description":"Self-update from a URL"},"warnings":[{"fix":"Check CanUpdate() before attempting update","message":"Update requires write permissions to the executable directory","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'allow':7 'binari':26 'binary-patch':25 'code':29 'code-sign':28 'execut':16 'file':17 'go':1,5 'go-upd':4 'new':20 'packag':3 'patch':27 'program':9 'replac':14 'self':23 'self-upd':22 'sign':30 'updat':2,6,11,24 'version':21","created_at":"2026-06-17T18:31:34.478438+00:00","updated_at":"2026-06-17T18:31:34.478438+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/getlantern/go-update","github":"https://github.com/getlantern/go-update","docs":"https://pkg.go.dev/github.com/getlantern/go-update#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}}