simple

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2024 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder[T any] struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder[T any](r io.Reader, parseWeight func(string) (T, error)) *Decoder[T]

func (*Decoder[T]) Decode

func (d *Decoder[T]) Decode() (internal.Graph[T], error)

type Encoder

type Encoder[T any] struct {
	// contains filtered or unexported fields
}

func NewEncoder

func NewEncoder[T any](w io.Writer, fmtWeight func(T) string) *Encoder[T]

func (*Encoder[T]) Encode

func (e *Encoder[T]) Encode(g internal.Graph[T]) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL