tools

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(rootDir string) ([]byte, error)

Build a Gno package: gno transpile -gobuild <dir>. TODO: Remove this in the favour of directly using tools/transpile.go

func Format

func Format(data string, opt FormattingOption) ([]byte, error)

func RunGofmt

func RunGofmt(data string) ([]byte, error)

func RunGofumpt

func RunGofumpt(data string) ([]byte, error)

func Transpile

func Transpile(rootDir string) ([]byte, error)

Transpile a Gno package: gno transpile <dir>.

Types

type FormattingOption

type FormattingOption int
const (
	Gofmt FormattingOption = iota
	Gofumpt
)

Jump to

Keyboard shortcuts

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