Skip to content

Xumeiquer/n43

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repo metadata

GitHub tag License

Call-to-Action buttons

ko-fi

Documentation

The N43 library parser is really simple, just load the lines from the N43 file into a new parser and parse it. After that, you'll have a nice structure with all the needed data accessible.

package main

import (
    "os"
    "log"
    "string"

    "github.com/Xumeiquer/n43"
)

func main() {
    data, err := os.ReadFile(fin)
    if err != nil {
        log.Fatal(err.Error())
    }

    dataLines := strings.Split(string(data), "\n")
    parser := n43.NewParser(dataLines, ops)
    res, err := parser.Parse()
    if err != nil {
        log.Fatal(err.Error())
    }

    printOutput(*res)
}

License

Released under MIT by @Xumeiquer.