goutils

package module
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

README

Build status Coverage Status License GoDoc

goutils

goutils

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayInt64Contain

func ArrayInt64Contain(a []int64, n int64) bool

func ArrayInt64Remove

func ArrayInt64Remove(a []int64, n int64) []int64

func ArrayIntContain

func ArrayIntContain(a []int, n int) bool

func ArrayIntRemove

func ArrayIntRemove(a []int, n int) []int

func ArrayRemoveDup

func ArrayRemoveDup(a []interface{}) []interface{}

func ArrayStringContain

func ArrayStringContain(a []string, s string) bool

func ArrayStringRemove

func ArrayStringRemove(a []string, s string) []string

func BigEndianBytesToUint16

func BigEndianBytesToUint16(bs []byte) uint16

func BigEndianBytesToUint32

func BigEndianBytesToUint32(bs []byte) uint32

func BigEndianBytesToUint64

func BigEndianBytesToUint64(bs []byte) uint64

func BigEndianUint16ToBytes

func BigEndianUint16ToBytes(bs []byte, n uint16)

func BigEndianUint32ToBytes

func BigEndianUint32ToBytes(bs []byte, n uint32)

func BigEndianUint64ToBytes

func BigEndianUint64ToBytes(bs []byte, n uint64)

func BoolToInt8 added in v1.0.1

func BoolToInt8(b bool) int8

func EncryptBytes

func EncryptBytes(bs []byte)

func EncryptNumber

func EncryptNumber(n int) int

func GetDiskUUIDNumber

func GetDiskUUIDNumber(name string) string

func GetRelativePath

func GetRelativePath(p1, p2 string) string

func Int8ToBool added in v1.0.1

func Int8ToBool(i int8) bool

func IsEqual

func IsEqual(a, b int) bool

a|b&b == a a&b|b == a.

func IsOddNumber

func IsOddNumber(n int) bool

func ZoreInt

func ZoreInt(n int) int

Types

type Array

type Array []interface{}

func (*Array) Contain

func (a *Array) Contain(val interface{}) bool

func (*Array) Insert

func (a *Array) Insert(val interface{})

func (*Array) Remove

func (a *Array) Remove(val interface{})

func (*Array) ToStringSlice

func (a *Array) ToStringSlice() []string

Directories

Path Synopsis
crypto
net
url
os
sync

Jump to

Keyboard shortcuts

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