Go Binding for libsass
Go C CSS Shell
Latest commit efb3a67 Sep 7, 2015 @suapapa Update README.md


Before start, there is another good Sass compilers written in !!PURE!! Go. Star them not here:

Or you can go to another up to date libsass binding projct:

About sass

It's Go binding for libsass which written in cpp by hcailin. It compile Sass file (.scss) to CSS.

This is no more an experimental cgo project to find best practice to guide people to download and install third party c library.



Install Go


$ go get github.com/suapapa/go_sass

If you don't have libsass in your system, run;

$ cd $GOROOT/src/pkg/github.com/suapapa/go_sass
$ install_libsass.sh

I'll ask admin password to install the libsass system widely.

General Documentation

Use go doc to vew the documentation for sass

go doc github.com/suapapa/go_sass

Or alternatively, refer go.pkgdoc.org


Compile Sass folder into CSS:

package main

import (

func main() {
        var sc sass.Compiler
        sc.CompileFolder("_scss", "css")


Homin Lee <homin.lee@suapapa.net>

Copyright & License

Copyright (c) 2012, Homin Lee. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.