util

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileExists

func CheckFileExists(filePath string) bool

func CompressFile

func CompressFile(fileIn string, fileOut string) error

func Contains added in v1.2.0

func Contains[T comparable](items []T, item T) bool

func CopyDir

func CopyDir(src string, dst string) (err error)

func CopyFile

func CopyFile(src, dst string) (err error)

func DiskUsage

func DiskUsage(dirpath string) float64

func GetFilecount

func GetFilecount(path string) int

func GetFilesize

func GetFilesize(filePath string) int64

func Max

func Max[T constraints.Ordered](a, b T) T

func Mean added in v1.4.0

func Mean(input []float64) (float64, error)

func Median added in v1.4.0

func Median(input []float64) (median float64, err error)

func Min

func Min[T constraints.Ordered](a, b T) T

func UncompressFile

func UncompressFile(fileIn string, fileOut string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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