util

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CellIdx

func CellIdx(ref string) (int, int)

CellIdx returns the cell index by ref.

func CellRef

func CellRef(i, j int) string

CellRef returns the cell ref by index.

func ColIdx

func ColIdx(ref string) int

ColIdx returns the col index by ref.

func ColRef

func ColRef(j int) string

ColRef returns the col ref by index.

func FloatToTime

func FloatToTime(v float64) time.Time

FloatToTime converts float to time.

func RangeIdx

func RangeIdx(ref string) (int, int, int, int)

RangeIdx returns the range index by ref.

func RangeRef

func RangeRef(i, j int, m, n int) string

RangeRef returns the range ref by index.

func RowIdx

func RowIdx(ref string) int

RowIdx returns the row index by ref.

func RowRef

func RowRef(i int) string

RowRef returns the row ref by index.

func TimeToFloat

func TimeToFloat(t time.Time) float64

TimeToFloat converts time to float.

func ToBool

func ToBool(s string) bool

ToBool converts string to bool.

func ToFloat

func ToFloat(s string) float64

ToFloat converts string to float.

func ToInt

func ToInt(s string) int

ToInt converts string to int.

func ToTime

func ToTime(s string) time.Time

ToTime converts string to time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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