...

Package cli

import "github.com/pelletier/go-toml/v2/internal/cli"
Overview
Index

Overview ▾

type ConvertFn

type ConvertFn func(r io.Reader, w io.Writer) error

type Program

type Program struct {
    Usage string
    Fn    ConvertFn
    // Inplace allows the command to take more than one file as argument and
    // perform conversion in place on each provided file.
    Inplace bool
}

func (*Program) Execute

func (p *Program) Execute()