clever

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 7 Imported by: 0

README

clever

High performance commonly used tool library

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(src string) (data []byte)

Bytes 利用反射转移字符串数据到bytes

func BytesMd5

func BytesMd5(data []byte) string

func BytesSha1

func BytesSha1(data []byte) string

func FileMd5

func FileMd5(filepath string, bufSize int) (string, error)

func First

func First[T any](s []T) *T

func Last

func Last[T any](s []T) *T

func QuickFileMd5

func QuickFileMd5(filepath string) (string, error)

func String

func String(data []byte) string

String tips: 只有在原有bytes确保不会发生变化时可以使用

func StringMd5

func StringMd5(value string) string

func StringSha1

func StringSha1(value string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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