border

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: MIT Imports: 0 Imported by: 10

Documentation

Overview

Package border contains all border types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Type

type Type int

Type represents a border type.

const (
	// Left is a border type that borders the left side.
	Left Type = 1 << iota
	// Top is a border type that borders the top side.
	Top
	// Right is a border type that borders the right side.
	Right
	// Bottom is a border type that borders the bottom side.
	Bottom
	// Full is a border type that borders all sides.
	Full = Left | Top | Right | Bottom
)
const None Type = 0

None is the default border type.

func (Type) HasBottom added in v2.3.2

func (t Type) HasBottom() bool

HasBottom checks if the border type includes bottom border.

func (Type) HasLeft added in v2.3.2

func (t Type) HasLeft() bool

HasLeft checks if the border type includes left border.

func (Type) HasRight added in v2.3.2

func (t Type) HasRight() bool

HasRight checks if the border type includes right border.

func (Type) HasTop added in v2.3.2

func (t Type) HasTop() bool

HasTop checks if the border type includes top border.

func (Type) IsValid

func (t Type) IsValid() bool

IsValid checks if the border type is valid.

func (Type) String added in v2.3.2

func (t Type) String() string

String returns the string representation of the border type.

Jump to

Keyboard shortcuts

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