{"id":16800804,"url":"https://github.com/danilobuerger/null","last_synced_at":"2025-03-17T05:29:41.781Z","repository":{"id":57502719,"uuid":"125719543","full_name":"danilobuerger/null","owner":"danilobuerger","description":"Nullable types for Go","archived":false,"fork":false,"pushed_at":"2018-08-12T20:29:17.000Z","size":11,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-23T15:15:05.545Z","etag":null,"topics":["go","golang","json","sql","xml"],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/danilobuerger/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/danilobuerger.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-03-18T11:50:12.000Z","updated_at":"2020-04-27T06:28:25.000Z","dependencies_parsed_at":"2022-09-01T23:20:37.010Z","dependency_job_id":null,"html_url":"https://github.com/danilobuerger/null","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/danilobuerger%2Fnull","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danilobuerger%2Fnull/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danilobuerger%2Fnull/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danilobuerger%2Fnull/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danilobuerger","download_url":"https://codeload.github.com/danilobuerger/null/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243979840,"owners_count":20378282,"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":["go","golang","json","sql","xml"],"created_at":"2024-10-13T09:35:08.069Z","updated_at":"2025-03-17T05:29:41.752Z","avatar_url":"https://github.com/danilobuerger.png","language":"Go","readme":"[![Build Status](https://travis-ci.org/danilobuerger/null.svg?branch=master)](https://travis-ci.org/danilobuerger/null) [![Coverage Status](https://coveralls.io/repos/github/danilobuerger/null/badge.svg?branch=master)](https://coveralls.io/github/danilobuerger/null?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/danilobuerger/null)](https://goreportcard.com/report/github.com/danilobuerger/null)\n\n# null\n\n## Types\n\nNullable types for Go. All types implement:\n\n* `sql.Scanner`\n* `driver.Valuer`\n* `json.Marshaler`\n* `json.Unmarshaler`\n* `encoding.TextMarshaler`\n* `encoding.TextUnmarshaler`\n* `xml.Marshaler`\n* `xml.Unmarshaler`\n\nWhen marshaling xml, the attribute `xsi:nil=\"true\"` will be added for null values.\nWhen unmarshaling xml, the value will be null if `xsi:nil=\"true\"` is set.\n\n### Float64\n\n`null.Float64` is based on `sql.NullFloat64` and exports the fields `Float64` and `Valid`.\n`Valid` is true if `Float64` is not null.\n\n### Int64\n\n`null.Int64` is based on `sql.NullInt64` and exports the fields `Int64` and `Valid`.\n`Valid` is true if `Int64` is not null.\n\n### String\n\n`null.String` is based on `sql.NullString` and exports the fields `String` and `Valid`.\n`Valid` is true if `String` is not null.\n\nWhen using `encoding.TextUnmarshaler`, an empty text will be valid.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanilobuerger%2Fnull","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanilobuerger%2Fnull","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanilobuerger%2Fnull/lists"}