{"id":36586677,"url":"https://github.com/fmorenovr/gonv","last_synced_at":"2026-01-12T08:04:01.678Z","repository":{"id":57551868,"uuid":"145177729","full_name":"fmorenovr/gonv","owner":"fmorenovr","description":"Golang implementation to manage environment variables in system.","archived":false,"fork":false,"pushed_at":"2019-08-19T17:38:28.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-21T08:58:09.900Z","etag":null,"topics":["enrivonment-system","environmental-variable","getenv","setenv","setenvironment","system-variable","varenv","variable"],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/fmorenovr/gonv","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fmorenovr.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-18T00:32:35.000Z","updated_at":"2019-08-19T17:38:29.000Z","dependencies_parsed_at":"2022-09-20T12:52:20.750Z","dependency_job_id":null,"html_url":"https://github.com/fmorenovr/gonv","commit_stats":null,"previous_names":["jenazads/gonv"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fmorenovr/gonv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmorenovr%2Fgonv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmorenovr%2Fgonv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmorenovr%2Fgonv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmorenovr%2Fgonv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fmorenovr","download_url":"https://codeload.github.com/fmorenovr/gonv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmorenovr%2Fgonv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337007,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["enrivonment-system","environmental-variable","getenv","setenv","setenvironment","system-variable","varenv","variable"],"created_at":"2026-01-12T08:04:01.603Z","updated_at":"2026-01-12T08:04:01.664Z","avatar_url":"https://github.com/fmorenovr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Golang + Environment = gonv\n\ngonv (Golang eNVironment) is a Golang implementation to manage environment variables in operating system.  \nYou can see an extended doc in [godocs](https://godoc.org/github.com/fmorenovr/gonv).\n\nInstall it writing in terminal:\n\n    go get github.com/fmorenovr/gonv\n\nExample:\n\n  ```go\n    import(\n      \"fmt\"\n      \"github.com/jenazads/gonv\"\n    )\n\n    func main(){\n      // using system environmental variables\n      gonv.SetEnv(\"BOOL\", true)\n      isBool, _ := gonv.GetBoolEnv(\"BOOL\")\n      username, _:= gonv.GetEnv(\"USER\") // return $USER system variable\n\n      fmt.Println(username, \", \", isBool)\n      \n      gonv.SetEnv(\"NAME\", \"Jenazads\")\n      nameSystem ,_ := gonv.GetEnv(\"NAME\")\n      fmt.Println(\"name:\", nameSystem)\n      gonv.UpdateEnv(\"NAME\", 4)\n      nameUpdatedsystem, _ := gonv.GetIntEnv(\"NAME\")\n      fmt.Println(\"name updated:\", nameUpdatedsystem)\n      \n      // using object environmental variables\n      gonvObject := gonv.NewGonv()\n      gonvObject.SetEnv(\"BOOL\", true)\n      isBool, _ = gonvObject.GetBoolEnv(\"BOOL\")\n      usernameObj,_ := gonvObject.GetEnv(\"USER\") // return nil\n      \n      fmt.Println(usernameObj, \", \", isBool)\n      \n      gonvObject.SetEnv(\"NAME\", \"Jenazads\")\n      nameLocal, _ := gonvObject.GetEnv(\"NAME\")\n      fmt.Println(\"name:\", nameLocal)\n      fmt.Println(gonvObject)\n\n      gonvObject.UpdateEnv(\"NAME\", 4)\n      nameLocal, _ = gonv.GetIntEnv(\"NAME\") // we can set another type because is interface type !\n      fmt.Println(\"name updated:\", nameLocal)\n      \n      fmt.Println(gonvObject)\n    }\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmorenovr%2Fgonv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffmorenovr%2Fgonv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmorenovr%2Fgonv/lists"}