bracket

package
v0.0.0-...-c928bda Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractContents

func ExtractContents(s string) []string

ExtractContents extracts the contents in brackets and returns them separately. The first element is always the contents not located in brackets. The remaining elements are sorted by their starting bracket position.

The content of brackets within other brackets is extracted separately and excluded from the parent brackets (ex: "(a (b))" will yield ["", "a ", "b"]).

Types

This section is empty.

Jump to

Keyboard shortcuts

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