lunara_framework

package module
v0.0.0-...-639110d Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 4 Imported by: 0

README

Lunara

pronounced "loo-NARE-RHA."

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreaOfCircleUsingCircumference

func AreaOfCircleUsingCircumference(c float64) (float64, error)

func AreaOfCircleUsingRadius

func AreaOfCircleUsingRadius(r float64) (float64, error)

func ComplexRoot

func ComplexRoot(root interface{}, radicand float64) (complex128, error)

func FastInvirseSqrt32

func FastInvirseSqrt32(x float32) (float32, error)

func PowerOf

func PowerOf(base float64, exponent float64) (float64, error)

func PrintColorf

func PrintColorf(text string, color string)

PrintColorf prints formatted text with the specified color.

func PrintColorln

func PrintColorln(text string, color string)

PrintColorln prints a line of text with the specified color.

func RealRoot

func RealRoot(root int64, radicand float64, rootIsFloat bool) (float64, error)

Types

type TextColors

type TextColors struct {
	White  string
	Red    string
	Blue   string
	Green  string
	Yellow string
}

TextColors struct holds ANSI escape codes for text color formatting.

func InitTextColors

func InitTextColors() TextColors

InitTextColors initializes and returns a TextColors struct with predefined color codes.

Jump to

Keyboard shortcuts

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