encodegen

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 12 Imported by: 0

README

encodegen

encodegen generates marshaling and unmarshaling implementations for the Sia encoding format.

Installation

go install go.sia.tech/encodegen

Usage

Add a //go:generate directive to the package containing the types you want to generate methods for:

//go:generate encodegen -t Foo,Bar

type Foo struct {
    ...
}

type Bar struct {
    ...
}

When run, this will add an encoding.go file to the package, containing MarshalSia and UnmarshalSia method definitions for each of the specified types.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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