utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFileName

func GetFileName(path string) string

GetFileName without extension

func Highlight

func Highlight(s string, start, end, before, after int, highlight string) string

Highlight start,end are valid string indexes. before,after are rune length

func IF

func IF(f bool, a, b interface{}) interface{}

func MinInt

func MinInt(a, b int) int

func MustGetDate

func MustGetDate(unix string) time.Time

func PathExist

func PathExist(path string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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