{"id":16179712,"url":"https://github.com/bep/golibsass","last_synced_at":"2025-03-03T09:04:50.178Z","repository":{"id":51127504,"uuid":"238655162","full_name":"bep/golibsass","owner":"bep","description":"Easy to use Go bindings for LibSass.","archived":false,"fork":false,"pushed_at":"2024-08-28T10:14:33.000Z","size":1874,"stargazers_count":19,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-17T06:36:56.833Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","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/bep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":["bep"]}},"created_at":"2020-02-06T09:47:18.000Z","updated_at":"2025-02-09T14:07:24.000Z","dependencies_parsed_at":"2024-06-18T16:51:26.330Z","dependency_job_id":"d3ce2dc3-cfee-4e21-9fc6-765ae148fe24","html_url":"https://github.com/bep/golibsass","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Fgolibsass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Fgolibsass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Fgolibsass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Fgolibsass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bep","download_url":"https://codeload.github.com/bep/golibsass/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240441940,"owners_count":19801793,"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-10T05:43:50.084Z","updated_at":"2025-02-24T08:06:35.037Z","avatar_url":"https://github.com/bep.png","language":"C++","funding_links":["https://github.com/sponsors/bep"],"categories":[],"sub_categories":[],"readme":"\n[![Tests on Linux, MacOS and Windows](https://github.com/bep/golibsass/workflows/Test/badge.svg)](https://github.com/bep/golibsass/actions?query=workflow:Test)\n[![Go Report Card](https://goreportcard.com/badge/github.com/bep/golibsass)](https://goreportcard.com/report/github.com/bep/golibsass)\n[![LibSass Version](https://img.shields.io/badge/LibSass-v3.6.6-blue)](https://github.com/sass/libsass)\n[![codecov](https://codecov.io/gh/bep/golibsass/branch/master/graph/badge.svg)](https://codecov.io/gh/bep/golibsass)\n[![GoDoc](https://godoc.org/github.com/bep/golibsass/libsass?status.svg)](https://godoc.org/github.com/bep/golibsass/libsass)\n\n**Note:** LibSASS (the C++ library that this project wraps) is now deprecated. You may want to try https://github.com/bep/godartsass\n\nThe primary motivation for this project is to provide `SCSS` support to [Hugo](https://gohugo.io/). I welcome PRs with bug fixes. I will also consider adding functionality, but please raise an issue discussing it first.\n\nIf you need more functionality than this project can provide you may want to have a look at [go-libsass](https://github.com/wellington/go-libsass).\n\n## Usage\n\nA basic example (error handling omitted):\n\n```go\ntranspiler, _ := libsass.New(libsass.Options{OutputStyle: libsass.CompressedStyle})\n\t\nresult, _ := transpiler.Execute(`\n$font-stack:    Helvetica, sans-serif;\n$primary-color: #333;\n\nbody {\n  font: 100% $font-stack;\n  color: $primary-color;\n}\n`)\n\nfmt.Println(result.CSS)\n// Output: body{font:100% Helvetica,sans-serif;color:#333}\n```\n\nSee the [GoDoc](https://godoc.org/github.com/bep/golibsass/libsass) for more options.\n\n## Update LibSass version\n\nThis project embeds the [LibSASS](https://github.com/sass/libsass) source code as a Git subtree. To update:\n\n1. Pull in the relevant LibSASS version, e.g. `./pull-libsass.sh 3.6.3`\n2. Regenerate wrappers with `go generate ./gen`\n3. Update the LibSass version badge above.\n\n## Local development\n\nCompiling C++ code isn' particulary fast; if you install libsass on your PC you can link against that, useful during development.\n\nOn a Mac you may do something like:\n\n```bash\nbrew install --HEAD libsass\ngo test ./libsass -tags dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbep%2Fgolibsass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbep%2Fgolibsass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbep%2Fgolibsass/lists"}