# README
Infinity File Formats Go
A Golang library for parsing Infinity file formats into JSON.
Description
The infinity_file_formats
package provides functionality to parse files in various Infinity-related formats (such as .are
, .bam
, etc.) and convert them into JSON format. This library is designed to handle the unique structure of Infinity files and provide a flexible way to work with their data in modern applications.
This project is not an executable tool but rather a library that can be integrated into other Go projects for file parsing needs.
Features
- Supports multiple Infinity-related file formats
- Efficient parsing of large files
- Converts parsed data to JSON format
Usage
Here are some examples of how to use the infinity_file_formats
library in your Golang projects.
Basic Parsing Example
package main
import (
"fmt"
"github.com/dark0dave/infinity_file_formats/bg"
)
func main() {
filePath := "path/to/your/file.itm" // Path to your Infinity file
itm, err := bg.OpenITM(filePath)
if err != nil {
fmt.Printf("Reading item failed")
return
}
buf := new(bytes.Buffer)
err = itm.WriteJson(buf)
if err != nil {
fmt.Printf("Writing item to JSON failed")
return
}
fmt.Println(buf.String())
}
Build
go build ./...
go doc bg
Test
go test -v ./...
# Packages
Package ini provides functions for parsing INI configuration files.