{"id":15733586,"url":"https://github.com/tomwright/null","last_synced_at":"2025-09-01T09:34:59.789Z","repository":{"id":57544026,"uuid":"162636980","full_name":"TomWright/null","owner":"TomWright","description":"Simplify usage of null values when marshalling and scanning values.","archived":false,"fork":false,"pushed_at":"2019-04-23T13:44:25.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T03:45:29.466Z","etag":null,"topics":["blank","empty","json","marshalling","null","nullability","nullable","nulled","nulltime","scan","scanner","scanning","string","strings","time","timestamp"],"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/TomWright.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.MD","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-20T22:18:46.000Z","updated_at":"2019-04-23T12:46:15.000Z","dependencies_parsed_at":"2022-09-16T23:00:46.236Z","dependency_job_id":null,"html_url":"https://github.com/TomWright/null","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/TomWright/null","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomWright%2Fnull","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomWright%2Fnull/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomWright%2Fnull/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomWright%2Fnull/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TomWright","download_url":"https://codeload.github.com/TomWright/null/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomWright%2Fnull/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273100347,"owners_count":25045697,"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","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["blank","empty","json","marshalling","null","nullability","nullable","nulled","nulltime","scan","scanner","scanning","string","strings","time","timestamp"],"created_at":"2024-10-04T01:00:34.624Z","updated_at":"2025-09-01T09:34:59.755Z","avatar_url":"https://github.com/TomWright.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/TomWright/null.svg?branch=master)](https://travis-ci.org/TomWright/null)\n[![codecov](https://codecov.io/gh/TomWright/null/branch/master/graph/badge.svg)](https://codecov.io/gh/TomWright/null)\n[![Documentation](https://godoc.org/github.com/TomWright/null?status.svg)](https://godoc.org/github.com/TomWright/null)\n\n# null\n\n```\ngo get -u github.com/tomwright/null\n```\n\nEasily scan/marshal between standard types and `null` values.\n\nThe null package provides a set of structs that can be used as both `scan` and `marshal` sources and destinations, with the sole exception being that an empty value will be marshal'd to a value of `null`, and a `null` value will be unmarshal'd to an empty value.\n\nThe following types are available:\n\n- [`null.String`: `null.NewString(\"Some string\")`](https://godoc.org/github.com/TomWright/null#String)\n- [`null.Time`: `null.NewTime(time.Now())`](https://godoc.org/github.com/TomWright/null#Time)\n\n# Determining validity\n\nEach struct within the package has a property or func named `Valid`. `Valid` will be `true` if the provided value was present and not empty.\nWhen retrieving a value from the struct, a `null` should be used whenever `Valid` is `false`.\n\n# Additional types\n\nAdditional types will be added/maintained as needed or as requested. Feel free to submit any pull request you find useful or necessary.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomwright%2Fnull","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomwright%2Fnull","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomwright%2Fnull/lists"}