{"id":19701514,"url":"https://github.com/yanndr/temperature","last_synced_at":"2026-06-09T13:31:23.931Z","repository":{"id":57511079,"uuid":"97504634","full_name":"yanndr/temperature","owner":"yanndr","description":"Go lib for temperature conversion","archived":false,"fork":false,"pushed_at":"2018-03-26T23:44:07.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-15T05:40:27.001Z","etag":null,"topics":["conversion","converter","go","golang","scale","temperature","temperature-conversion","temperature-converter"],"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/yanndr.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":"2017-07-17T17:38:48.000Z","updated_at":"2018-03-26T23:44:08.000Z","dependencies_parsed_at":"2022-09-26T16:30:29.430Z","dependency_job_id":null,"html_url":"https://github.com/yanndr/temperature","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yanndr/temperature","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanndr%2Ftemperature","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanndr%2Ftemperature/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanndr%2Ftemperature/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanndr%2Ftemperature/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yanndr","download_url":"https://codeload.github.com/yanndr/temperature/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanndr%2Ftemperature/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34110011,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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":["conversion","converter","go","golang","scale","temperature","temperature-conversion","temperature-converter"],"created_at":"2024-11-11T21:09:13.166Z","updated_at":"2026-06-09T13:31:23.905Z","avatar_url":"https://github.com/yanndr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# temperature\n[![Build Status](https://travis-ci.org/yanndr/temperature.svg?branch=master)](https://travis-ci.org/yanndr/temperature) [![Go Report Card](https://goreportcard.com/badge/github.com/yanndr/temperature)](https://goreportcard.com/report/github.com/yanndr/temperature)\n[![GoDoc](https://godoc.org/github.com/yanndr/temperature?status.svg)](https://godoc.org/github.com/yanndr/temperature)\n\nThis is Go library for temperature conversion.\nSo far, it allows you to convert Kelvin, Celsius, Fahrenheit, Rankine, Reaumur and Delisle unit.\nYou can also use your own unit as long at the unit is implementing the interfaces ToKelvin and FromKelvin.\n\n## Installing\n\n```\ngo get github.com/yanndr/temperature\n```\n\n## Usage\n \n```\nc := temperature.New(30,Celsius)\n\nresult,_ := temperature.Convert(c, temperature.Fahrenheit)\n\n\nfmt.Println(result)\n// output 86 °F\n```\n\nIf you want to use a unit that I didn't implement:\n\n```\ntype newUnit temperature.Unit\n\nconst myUnit = newUnit(\"Y\")\n\nfunc (newUnit) ToKelvin(v float64) float64 {\n\treturn v + 710\n}\n\nfunc (newUnit) FromKelvin(v float64) temperature.Temperature {\n\treturn temperature.New(v-710, myUnit)\n}\n\nfunc main() {\n\tc := temperature.New(0,temperature.Celsius)\n\n\tresult,_ := temperature.Convert(c, myUnit)\n\tfmt.Println(c)\n\tfmt.Println(result)\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanndr%2Ftemperature","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyanndr%2Ftemperature","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanndr%2Ftemperature/lists"}