parseroptions

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	NameRow  int
	TypeRow  int
	NoteRow  int
	DataRow  int
	NameLine int
	TypeLine int
	NoteLine int
	Sep      string
	Subsep   string
}

func MergeHeader added in v0.13.0

func MergeHeader(sheetOpts *tableaupb.WorksheetOptions, bookOpts *tableaupb.WorkbookOptions, globalOpts *options.HeaderOption) *Header

MergeHeader merges sheet-level, book-level, and global-level header options into the final header options.

type Option

type Option func(*Options)

Option is the functional option type.

func Mode added in v0.13.0

func Mode(mode tableaupb.Mode) Option

func Nested

func Nested(nested bool) Option

func VTypeCell

func VTypeCell(cursor int, typeCell string) Option

type Options

type Options struct {
	Nested bool
	Mode   tableaupb.Mode
	// contains filtered or unexported fields
}

Options follow the design of Functional Options(https://github.com/tmrts/go-patterns/blob/master/idiom/functional-options.md)

func ParseOptions

func ParseOptions(options ...Option) *Options

func (*Options) GetVTypeCell

func (opts *Options) GetVTypeCell(cursor int) string

func (*Options) IsUnionMode added in v0.13.0

func (opts *Options) IsUnionMode() bool

IsUnionMode returns true if it belongs to following modes:

  • MODE_UNION_TYPE
  • MODE_UNION_TYPE_MULTI

Jump to

Keyboard shortcuts

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