alias

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package alias provides unprefixed type aliases for split command flags. This allows users to import and use shorter names:

import "github.com/gloo-foo/cmd-split/alias"
split.Split(alias.Delim(":"))

Index

Constants

View Source
const (
	DelimColon     = command.SplitDelimColon
	DelimComma     = command.SplitDelimComma
	DelimDash      = command.SplitDelimDash
	DelimDot       = command.SplitDelimDot
	DelimHash      = command.SplitDelimHash
	DelimSemicolon = command.SplitDelimSemicolon
	DelimSlash     = command.SplitDelimSlash
	DelimSpace     = command.SplitDelimSpace
	DelimTab       = command.SplitDelimTab
)

common delimiters

Variables

This section is empty.

Functions

func Split

func Split(opts ...any) gloo.Command[[]byte, []byte]

Split re-exports the constructor.

Types

type Delim

type Delim = command.SplitDelim

-d flag: field delimiter

Jump to

Keyboard shortcuts

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