breakline

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 0 Imported by: 2

Documentation

Overview

Package breakline contains all break line strategies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Strategy

type Strategy string

Strategy represents a break line strategy.

const (
	// EmptySpaceStrategy is a break line strategy that counts the length of words to create a new line.
	// This strategy only works in languages that use spaces to divide words
	EmptySpaceStrategy Strategy = "empty_space_strategy"
	// DashStrategy is a break line strategy that counts the length for
	// a set of characters with no relation with the meaning of words.
	// This strategy is useful for languages that don't use space between words.
	// To divide the lines, is applied a dash in the end of the line.
	DashStrategy Strategy = "dash_strategy"
)

Jump to

Keyboard shortcuts

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