{"id":16866979,"url":"https://github.com/webern/go-value","last_synced_at":"2026-04-28T18:01:21.185Z","repository":{"id":88144089,"uuid":"183962350","full_name":"webern/go-value","owner":"webern","description":"A simpler any-like structure in Go","archived":false,"fork":false,"pushed_at":"2019-04-30T15:49:34.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T21:25:07.927Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/webern.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-28T21:48:28.000Z","updated_at":"2019-04-29T19:59:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"c70e4a79-9ada-4504-b2cb-01a250c800ac","html_url":"https://github.com/webern/go-value","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webern%2Fgo-value","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webern%2Fgo-value/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webern%2Fgo-value/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webern%2Fgo-value/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webern","download_url":"https://codeload.github.com/webern/go-value/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244273880,"owners_count":20427006,"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":[],"created_at":"2024-10-13T14:52:18.171Z","updated_at":"2026-04-28T18:01:21.125Z","avatar_url":"https://github.com/webern.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"go-value\n========\n\nValue wraps a fixed set of very common types in a static-typed-friendly way. It frees you up from using `interface{}` for a lot of use cases where you don't know the type you will receive (e.g. JSON).\n\nIt looks like this:\n\n```\nv := Value{}\nv.IsNull()                  // true\nv.IsInt()                   // false\nv.SetInt(5)\nv.IsInt()                   // true\nv.Int()                     // 5\nv.String()                  // \"\"\nv.IsString()                // false\nv.SetString(\"Hello Value\")\nv.IsString()                // true\nv.String()                  // \"Hello Value\"\n```\n\nThis is a simple package. I may break the API though so this is version zero.\n\n#### TODO\n\nIn particular I want to change the functions like `CoerceToBool` to be pure standalone functions instead of member functions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebern%2Fgo-value","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebern%2Fgo-value","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebern%2Fgo-value/lists"}