common

package
v0.0.0-...-5ed09de Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConstDefaultURL = "http://localhost:8001"

	ConstStorageDatabase = "database"
	ConstStorageRedis    = "redis"
	ConstStorageRabbitmq = "rabbitmq"
	ConstStorageDropbox  = "dropbox"
)

Variables

This section is empty.

Functions

func EncodeString

func EncodeString(s string) string

func Exists

func Exists(file string) bool

func GetEnv

func GetEnv() string

func GetExtension

func GetExtension(fileName string) string

func NewULID

func NewULID() ulid.ULID

func ReadFile

func ReadFile(file string, obj interface{}) ([]byte, error)

func ReadFileLines

func ReadFileLines(file string) ([]string, error)

func WriteFile

func WriteFile(file string, obj interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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