Skip to content

cqb13/puz-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PUZ Parser

A PUZ file decoder and encoder based on the format specified here.

Features

  • Encodes and Decodes PUZ Files
  • Supports Extra Sections
  • Unscrambles and Re-scrambles PUZ files
  • Preserves all data

TODO

  • Docs

Installation

go get github.com/cqb13/puz-parser/puz

Basic Usage

import (
    "github.com/cqb13/puz-parser/puz"
)

func main() {
    // get the bytes from a file

    puzzle, err := puz.DecodePuz(fileBytes)
    if err != nil {
		panic(err)
    }

    encodedBytes, err := puz.EncodePuz(puzzle)
    if err != nil {
		panic(err)
    }
}

Acknowledgments

This project would not be possible without the help of the following:

Releases

No releases published

Packages

No packages published

Languages