evilarray

package
v0.0.0-...-e3e5662 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EXTRACT_VALUES_FROM_EVIL_ARRAY = "\\${(.*)}\\$"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Evil_array_t

type Evil_array_t struct {
	// contains filtered or unexported fields
}

func (*Evil_array_t) Append

func (object *Evil_array_t) Append(new_content string)

Appends data to the array

func (*Evil_array_t) Dump

func (object *Evil_array_t) Dump() []string

Returns the inner gut which is where all the arrays contents is located

func (*Evil_array_t) Get

func (object *Evil_array_t) Get(index int) string

Grabs data at the provided index

func (*Evil_array_t) Get_between

func (object *Evil_array_t) Get_between(start int, end int) []string

Grabs all data between the provided indexes

func (*Evil_array_t) Length

func (object *Evil_array_t) Length() int

Returns the length of the array

func (*Evil_array_t) Lowercase

func (object *Evil_array_t) Lowercase()

Makes the values in the array lowercase

func (*Evil_array_t) Parse

func (object *Evil_array_t) Parse(formatted_evil_array string)

Parses the provided evil array and inserts those values into this structure

func (*Evil_array_t) Pop_back

func (object *Evil_array_t) Pop_back() string

Removes the value in the back and returns it

func (*Evil_array_t) Pop_front

func (object *Evil_array_t) Pop_front() string

Removes the value in the front and returns it

func (*Evil_array_t) Pop_index

func (object *Evil_array_t) Pop_index(index int) string

Removes the value at the index and returns it

func (*Evil_array_t) Replace

func (object *Evil_array_t) Replace(index int, new_content string)

Replaces data at the index with the new data

func (*Evil_array_t) Set_gut

func (object *Evil_array_t) Set_gut(new_gut []string)

Set the gut to the provided value

func (*Evil_array_t) Set_length

func (object *Evil_array_t) Set_length(new_length int)

Returns the length of the array

func (*Evil_array_t) To_string

func (object *Evil_array_t) To_string(format string) string

Returns the contents of the array as a string Possible formats are:

  • evil - Format ${...}$
  • array - Format []string{...}

func (*Evil_array_t) Uppercase

func (object *Evil_array_t) Uppercase()

Makes the values in the array uppercase

Jump to

Keyboard shortcuts

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