Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.32 KB

README.md

File metadata and controls

47 lines (33 loc) · 1.32 KB

xstack

GoDev Build Status Coverage Status Go Report Card

Xstack is library for xstack layouts generation written in Go.

Quick-start

package main

import (
  "bytes"
  "fmt"

  "github.com/video-audio/xstack"
)

// 0_0|w0_0|w0+w1_0|0_h0|w0_h0|w0+w1_h0|0_h0+h1|w0_h0+h1|w0+w1_h0+h1
func main() {
  fmt.Println(xstack.Layout(9))

  // or
  b := bytes.Buffer{}
  xstack.LayoutTo(&b, 9)

  fmt.Println(b.String())
}