Utility

package module
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 9 Imported by: 0

README

Utility

Collection of utilities used in AulaDevs internal projects

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DEBUG = loggerLevel{1}
	INFO  = loggerLevel{2}
	WARN  = loggerLevel{3}
	ERROR = loggerLevel{4}
)

Functions

func DecodeIP added in v1.2.0

func DecodeIP(ip string) string

func EncodeIP added in v1.2.0

func EncodeIP(ip string) string

func GetIPColor added in v1.2.0

func GetIPColor(ip string) string

Types

type ByteArray

type ByteArray struct {
	Bytes *bytes.Buffer
}

func NewByteArray

func NewByteArray(bytes *bytes.Buffer) *ByteArray

func NewByteArrayEmpty

func NewByteArrayEmpty() *ByteArray

Constructors

func (*ByteArray) Clear

func (bt *ByteArray) Clear() *ByteArray

Standard methods

func (*ByteArray) Get_Bytes

func (bt *ByteArray) Get_Bytes() []byte

func (*ByteArray) Len

func (bt *ByteArray) Len() int

func (*ByteArray) Read_Boolean

func (bt *ByteArray) Read_Boolean() bool

func (*ByteArray) Read_Byte

func (bt *ByteArray) Read_Byte() byte

Read methods

func (*ByteArray) Read_Bytes

func (bt *ByteArray) Read_Bytes(length int) []byte

func (*ByteArray) Read_Int

func (bt *ByteArray) Read_Int() int

func (*ByteArray) Read_Int48

func (bt *ByteArray) Read_Int48() int64

func (*ByteArray) Read_Short

func (bt *ByteArray) Read_Short() uint16

func (*ByteArray) Read_String

func (bt *ByteArray) Read_String() string

func (*ByteArray) Write_Boolean

func (bt *ByteArray) Write_Boolean(value bool) *ByteArray

func (*ByteArray) Write_Byte

func (bt *ByteArray) Write_Byte(value byte) *ByteArray

Write methods

func (*ByteArray) Write_Bytes

func (bt *ByteArray) Write_Bytes(value []byte) *ByteArray

func (*ByteArray) Write_Int

func (bt *ByteArray) Write_Int(value int) *ByteArray

func (*ByteArray) Write_Int48

func (bt *ByteArray) Write_Int48(value int64) *ByteArray

func (*ByteArray) Write_Short

func (bt *ByteArray) Write_Short(value uint16) *ByteArray

func (*ByteArray) Write_String

func (bt *ByteArray) Write_String(value string) *ByteArray

type Logger added in v1.0.2

type Logger struct {
	// contains filtered or unexported fields
}

func NewLogger added in v1.0.2

func NewLogger(filepath string, level loggerLevel, console bool) Logger

Constructor

func (*Logger) Close added in v1.0.2

func (logger *Logger) Close(format string, a ...any)

func (*Logger) Debug added in v1.0.2

func (logger *Logger) Debug(format string, a ...any)

func (*Logger) Error added in v1.0.2

func (logger *Logger) Error(format string, a ...any)

func (*Logger) Info added in v1.0.2

func (logger *Logger) Info(format string, a ...any)

func (*Logger) Warn added in v1.0.2

func (logger *Logger) Warn(format string, a ...any)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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