Categorygithub.com/theonly92/sgreader
repositorypackage
0.0.0-20140423145825-0cd0ce4efc37
Repository: https://github.com/theonly92/sgreader.git
Documentation: pkg.go.dev

# README

sgreader

Installation

go get github.com/TheOnly92/sgreader

Documentation

http://godoc.org/github.com/TheOnly92/sgreader

Usage

package main

import (
    "github.com/TheOnly92/sgreader"
)

func main() {
    file := sgreader.ReadFile("C3.sg2")
    err := file.Load()
    if err != nil {
        panic(err)
    }

    bitmaps := file.BitmapCount()
    fmt.Printf("Bitmaps: %d\n", bitmaps)
}