GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wellington/go-libsass: Go wrapper for libsass, the only Sass 3.5 compiler for Go

This repository was archived by the owner on Apr 7, 2026. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

329 Commits
329 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
blah
blah
 
 
examples
examples
 
 
libs
libs
 
 
libsass-build
libsass-build
 
 
libsass-src @ 39e3087
libsass-src @ 39e3087
 
 
test
test
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
appveyor.yml
appveyor.yml
 
 
compiler.go
compiler.go
 
 
compiler_test.go
compiler_test.go
 
 
context.go
context.go
 
 
context_test.go
context_test.go
 
 
doc.go
doc.go
 
 
encoding.go
encoding.go
 
 
encoding_test.go
encoding_test.go
 
 
error.go
error.go
 
 
error_test.go
error_test.go
 
 
export.go
export.go
 
 
export_test.go
export_test.go
 
 
file_test.go
file_test.go
 
 
func.go
func.go
 
 
func_test.go
func_test.go
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
header.go
header.go
 
 
header_test.go
header_test.go
 
 
importer.go
importer.go
 
 
importer_test.go
importer_test.go
 
 
mixins.go
mixins.go
 
 
options.go
options.go
 
 
options_test.go
options_test.go
 
 
toscss.go
toscss.go
 
 
toscss_test.go
toscss_test.go
 
 
unicode_test.go
unicode_test.go
 
 
version.go
version.go
 
 
version_test.go
version_test.go
 
 

Repository files navigation

libsass

  • Deprecated Try this project https://github.com/bep/godartsass

Circle CI Build status

The only Sass compliant Go library! go-libsass is a wrapper to the sass/libsass project.

To build, setup Go

go build

To test

go test

Basic example more examples found in examples

buf := bytes.NewBufferString("div { p { color: red; } }")
if err != nil {
	log.Fatal(err)
}
comp, err := libsass.New(os.Stdout, buf)
if err != nil {
	log.Fatal(err)
}

if err := comp.Run(); err != nil {
	log.Fatal(err)
}

Output

div p {
  color: red; }

Updating libsass

cd libsass-src; git fetch; git checkout vX.X.X
git commit -m "updated libsass to vX.X.X"
make update-libsass
# iterate on includes and code changes until tests pass

FAQ

  • Compiling go-libsass is very slow, what can be done?

    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.

  • How do I cross compile?

    Since this package uses C bindings, you will need gcc for the target platform. For windows see, #37

About

Go wrapper for libsass, the only Sass 3.5 compiler for Go

godoc.org/github.com/wellington/go-libsass

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

214 stars

Watchers

8 watching

Forks

30 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.