lmpsdat

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: GPL-2.0 Imports: 8 Imported by: 0

README

lmpsdat

Equivalent of Pizza.py data.py in Go.

Installation

  1. lmpsdat requires go >=1.15 in order to work.
  2. go get github.com/Ortiye/lmpsdat.
  3. Implement lmpsdat in your code.

Documentation

The documentation is available here: https://pkg.go.dev/github.com/Ortiye/lmpsdat.

Examples

See the examples folder.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

Decoder reads and decodes LAMMPS data values from an input stream.

func NewDecoder

func NewDecoder(r io.Reader) *Decoder

NewDecoder returns a new decoder that reads from r.

func (*Decoder) Decode

func (dec *Decoder) Decode(v interface{}) error

Decode reads the next LAMMPS data-encoded value from its input and stores it in the value pointed to by v.

type Encoder

type Encoder struct {
	// contains filtered or unexported fields
}

Encoder writes LAMMPS data values to an input stream.

func NewEncoder

func NewEncoder(w io.Writer) *Encoder

NewEncoder returns a new encoder that writes to w.

func (*Encoder) Encode

func (enc *Encoder) Encode(v interface{}) error

Encode writes the LAMMPS data of v to the stream.

Directories

Path Synopsis
examples
1

Jump to

Keyboard shortcuts

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