{"id":19083325,"url":"https://github.com/robusgauli/goenv","last_synced_at":"2025-06-22T16:34:26.860Z","repository":{"id":57581806,"uuid":"156888313","full_name":"RobusGauli/goenv","owner":"RobusGauli","description":" Manage environment variables in one go.","archived":false,"fork":false,"pushed_at":"2018-11-11T13:24:07.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-02T20:44:08.739Z","etag":null,"topics":["configuration-files","dotenv","dotenv-parser","go","golang"],"latest_commit_sha":null,"homepage":"","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/RobusGauli.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-11-09T16:24:45.000Z","updated_at":"2019-06-18T04:27:52.000Z","dependencies_parsed_at":"2022-09-26T17:00:46.644Z","dependency_job_id":null,"html_url":"https://github.com/RobusGauli/goenv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobusGauli%2Fgoenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobusGauli%2Fgoenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobusGauli%2Fgoenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobusGauli%2Fgoenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobusGauli","download_url":"https://codeload.github.com/RobusGauli/goenv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240133142,"owners_count":19752993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["configuration-files","dotenv","dotenv-parser","go","golang"],"created_at":"2024-11-09T02:47:01.762Z","updated_at":"2025-02-22T06:22:25.095Z","avatar_url":"https://github.com/RobusGauli.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"GoEnv: Fast Env Decoder to Go-Struct for Go \n================================================\n\nWhat is this?\n-------------\n\nThis package loads environment variables into go-struct with validation built-in.\nIt also tries to load key-value pair from .env file within the root project directory if available. \n - Fast implementation without Regexp.\n   \n - more options for validation and defaults.\n \n\n\n\nInstallation\n------------\n\n```sh\ngo get -u github.com/RobusGauli/goenv\n```\n\nUsage\n-----\n\nSetup\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/RobusGauli/goenv\"\n)\n\n// Config struct\ntype Config struct {\n\tGoPath   string `env:\"GOPATH\"`\n\tJavaHome string `env:\"JAVA_HOME\"`\n\tPwd      string `env:\"PWD\"`\n}\n\n```\n\nVanilla Usage\n\n```go\n// initiate config struct\nvar config Config\nif err := goenv.ParseEnv(\u0026config); err != nil {\n\tlog.Fatal(err)\n}\nfmt.Println(config)\n// Done\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobusgauli%2Fgoenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobusgauli%2Fgoenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobusgauli%2Fgoenv/lists"}