parts

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Merge

func Merge(filename string, partPaths []string, ctx speccontext.GitContext) error

Types

type Context

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

func NewScope

func NewScope(num, total int) Context

NewScope creates a fresh context from two numbers

func (Context) Current

func (s Context) Current() int

func (Context) Defined

func (s Context) Defined() bool

Defined is true when total is bigger than 0

func (*Context) MarkAsMerged

func (s *Context) MarkAsMerged()

MarkAsMerged records the fact that part was merged

func (Context) Merged

func (s Context) Merged() bool

func (Context) Name

func (s Context) Name() string

Name returns string that contains part number and total

func (Context) Total

func (s Context) Total() int

Jump to

Keyboard shortcuts

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