util

package
v0.0.0-...-233f343 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLastElements

func GetLastElements(data []float64, length int) []float64

slice 의 마지막 원소를 원하는 개수만큼 가져옵니다.

func GetLastElementsOfEachRow

func GetLastElementsOfEachRow(data [][]float64, length int) [][]float64

2D slice 의 각 row 의 마지막 원소를 원하는 개수만큼 가져옵니다.

func PushUsageData

func PushUsageData(data []float64, value float64) []float64

PushUsageData data 배열에 value를 추가하고 맨 앞 데이터를 삭제한다.

Types

type FixedSparklineGroup

type FixedSparklineGroup struct {
	SparklineGroup
}

func (*FixedSparklineGroup) Draw

func (self *FixedSparklineGroup) Draw(buf *Buffer)

Jump to

Keyboard shortcuts

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