MCPcopy Index your code
hub / github.com/akalin/gopar

github.com/akalin/gopar @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
657 symbols 2,057 edges 74 files 158 documented · 24%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Go Reference gopar

This repository contains an implementation of the PAR1 file format and the PAR2 file format in Go, as well as a command-line application for manipulating PAR1 and PAR2 files.

Installation

To install the par command-line application, if go 1.16 or later:

go install github.com/akalin/gopar/cmd/par@latest

and otherwise:

go install github.com/akalin/gopar/cmd/par

License

Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Extension points exported contracts — how you extend this code

CreateDelegate (Interface)
CreateDelegate extends EncoderDelegate with another delegate function. [3 implementers]
par1/create.go
CreateDelegate (Interface)
CreateDelegate is just EncoderDelegate for now. [3 implementers]
par2/create.go
DecoderDelegate (Interface)
DecoderDelegate holds methods that are called during the decode process.
par1/decoder.go
RepairDelegate (Interface)
RepairDelegate is just DecoderDelegate for now.
par1/repair.go
EncoderDelegate (Interface)
EncoderDelegate holds methods that are called during the encode process.
par1/encoder.go
VerifyDelegate (Interface)
VerifyDelegate is just DecoderDelegate for now.
par1/verify.go
DecoderDelegate (Interface)
DecoderDelegate holds methods that are called during the decode process.
par2/decoder.go
RepairDelegate (Interface)
RepairDelegate is just DecoderDelegate for now.
par2/repair.go

Core symbols most depended-on inside this repo

ReadFile
called by 42
par2/decoder.go
WriteFile
called by 26
par2/decoder.go
Times
called by 25
gf2p16/t.go
RootDir
called by 24
memfs/memfs.go
LoadFileData
called by 19
par2/decoder.go
At
called by 17
gf2p16/matrix.go
LoadFileData
called by 16
par1/decoder.go
NewMatrixFromSlice
called by 16
gf2p16/matrix.go

Shape

Function 347
Method 209
Struct 76
Interface 13
TypeAlias 11
FuncType 1

Languages

Go100%

Modules by API surface

par2/decoder.go80 symbols
cmd/par/main.go53 symbols
par1/decoder.go31 symbols
par1/decoder_test.go26 symbols
gf2p16/slice_test.go26 symbols
par2/decoder_test.go24 symbols
rsec16/coder_test.go21 symbols
gf2p16/slice_amd64.go20 symbols
rsec16/matrix_test.go19 symbols
gf2p16/matrix.go18 symbols
gf2p16/slice_amd64_test.go16 symbols
par2/file_test.go15 symbols

For agents

$ claude mcp add gopar \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact