{"id":13411346,"url":"https://github.com/wellington/go-libsass","last_synced_at":"2025-10-29T10:55:25.065Z","repository":{"id":30655672,"uuid":"34211333","full_name":"wellington/go-libsass","owner":"wellington","description":"Go wrapper for libsass, the only Sass 3.5 compiler for Go","archived":false,"fork":false,"pushed_at":"2023-12-05T09:50:44.000Z","size":4355,"stargazers_count":206,"open_issues_count":17,"forks_count":29,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-10-25T04:09:49.325Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://godoc.org/github.com/wellington/go-libsass","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wellington.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-04-19T15:09:47.000Z","updated_at":"2024-10-14T20:19:46.000Z","dependencies_parsed_at":"2024-06-18T12:41:51.665Z","dependency_job_id":"c14a5cdc-8355-462a-900c-d546d78a6635","html_url":"https://github.com/wellington/go-libsass","commit_stats":null,"previous_names":["wellington/libsass"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wellington%2Fgo-libsass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wellington%2Fgo-libsass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wellington%2Fgo-libsass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wellington%2Fgo-libsass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wellington","download_url":"https://codeload.github.com/wellington/go-libsass/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243618596,"owners_count":20320263,"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-07-30T20:01:13.055Z","updated_at":"2025-10-29T10:55:25.001Z","avatar_url":"https://github.com/wellington.png","language":"C++","funding_links":[],"categories":["CSS预处理器","CSS Preprocessors","\u003cspan id=\"css预处理器-css-preprocessors\"\u003eCSS预处理器 CSS Preprocessors\u003c/span\u003e","CSS预处理","Uncategorized","CSS预处理`预处理css文件的库`","C++"],"sub_categories":["标准CLI","Standard CLI","Advanced Console UIs","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","标准 CLI"],"readme":"libsass\n=========\n\n* Deprecated\nTry this project [https://github.com/bep/godartsass](https://github.com/bep/godartsass)\n\n[![Circle CI](https://circleci.com/gh/wellington/go-libsass.svg?style=svg)](https://circleci.com/gh/wellington/go-libsass) [![Build status](https://ci.appveyor.com/api/projects/status/uhl4swbb2r7lcfpc/branch/master?svg=true)](https://ci.appveyor.com/project/drewwells/go-libsass/branch/master)\n\nThe only Sass compliant Go library! go-libsass is a wrapper to the [sass/libsass](http://github.com/sass/libsass) project.\n\nTo build, setup Go\n\n    go build\n\nTo test\n\n    go test\n\nBasic example more examples found in [examples](examples)\n\n```go\nbuf := bytes.NewBufferString(\"div { p { color: red; } }\")\nif err != nil {\n\tlog.Fatal(err)\n}\ncomp, err := libsass.New(os.Stdout, buf)\nif err != nil {\n\tlog.Fatal(err)\n}\n\nif err := comp.Run(); err != nil {\n\tlog.Fatal(err)\n}\n```\n\nOutput\n```\ndiv p {\n  color: red; }\n```\n\n### Updating libsass\n\n```\ncd libsass-src; git fetch; git checkout vX.X.X\ngit commit -m \"updated libsass to vX.X.X\"\nmake update-libsass\n# iterate on includes and code changes until tests pass\n```\n\n### FAQ\n\n* Compiling go-libsass is very slow, what can be done?\n\n    Go-libsass compiles C/C++ libsass on every build. You can install the package and speed up building `go install github.com/wellington/go-libsass`. Alternatively, it's possible to link against system libsass and forego C compiling with `go build -tags dev`.\n\n* How do I cross compile?\n\n    Since this package uses C bindings, you will need gcc for the target platform. For windows see, https://github.com/wellington/go-libsass/issues/37\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwellington%2Fgo-libsass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwellington%2Fgo-libsass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwellington%2Fgo-libsass/lists"}