v_utils

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileScanResult added in v1.0.2

type FileScanResult struct {
	FileName string
	DirPath  string
	FilePath string
}

type VS

type VS struct {
	Files *filesStruct
}
var Utils *VS
 ============================================
	Created by andy pangaribuan on 2020/04/01
	Copyright BoltIdea. All rights reserved.
   ============================================

func (*VS) Base64DecodeString

func (*VS) Base64DecodeString(value string) (decode string, err error)

func (*VS) Base64EncodeString

func (*VS) Base64EncodeString(value string) string

func (*VS) BindEchoBodyToPars

func (slf *VS) BindEchoBodyToPars(c echo.Context, destination interface{}) error

func (*VS) GetEchoRequestBody

func (*VS) GetEchoRequestBody(c echo.Context) (body string, err error)

func (*VS) GetId10

func (slf *VS) GetId10() (id string)

func (*VS) GetId100

func (slf *VS) GetId100() (id string)

func (*VS) GetId20

func (slf *VS) GetId20() (id string)

func (*VS) GetId30

func (slf *VS) GetId30() (id string)

func (*VS) GetTraceId

func (slf *VS) GetTraceId(c echo.Context) (traceId string)

func (*VS) GetUUID

func (slf *VS) GetUUID() string

func (*VS) GetUniqueId

func (slf *VS) GetUniqueId() string

func (*VS) HttpGet

func (*VS) HttpGet(url string, header map[string]string, params map[string]string, isSkipSecurityChecking bool, timeOut *time.Duration) ([]byte, int, error)

func (*VS) HttpPost

func (slf *VS) HttpPost(url string, header map[string]string, body map[string]interface{}, isSkipSecurityChecking bool, timeOut *time.Duration) ([]byte, int, error)

func (*VS) HttpPostData

func (*VS) HttpPostData(url string, header map[string]string, data []byte, isSkipSecurityChecking bool, timeOut *time.Duration) ([]byte, int, error)

func (*VS) MD5Encryption

func (*VS) MD5Encryption(value string) string

func (*VS) ParsValidationNullOrEmpty

func (*VS) ParsValidationNullOrEmpty(names []string, args ...interface{}) (msg *string)

func (*VS) RandomAlphabet

func (*VS) RandomAlphabet(length int) string

func (*VS) RandomAlphabetNumeric

func (*VS) RandomAlphabetNumeric(length int) string

func (*VS) RandomLowerCaseAlphabet

func (*VS) RandomLowerCaseAlphabet(length int) string

func (*VS) RandomNumeric

func (*VS) RandomNumeric(length int) string

func (*VS) RandomUpperCaseAlphabet

func (*VS) RandomUpperCaseAlphabet(length int) string

func (*VS) RemoveAllUnusedStr

func (*VS) RemoveAllUnusedStr(value string, args ...string) string

func (*VS) RemoveUnIntTime

func (slf *VS) RemoveUnIntTime(value string) string

func (*VS) Str2TimeDate

func (*VS) Str2TimeDate(value string) (tm time.Time, err error)

func (*VS) Str2TimeFull

func (*VS) Str2TimeFull(value string) (tm time.Time, err error)

func (*VS) Str2TimeMicros

func (*VS) Str2TimeMicros(value string) (tm time.Time, err error)

func (*VS) Str2TimeMillis

func (*VS) Str2TimeMillis(value string) (tm time.Time, err error)

func (*VS) StrIsDigitAndLetter

func (*VS) StrIsDigitAndLetter(value string) bool

func (*VS) Time2Str

func (*VS) Time2Str(tm time.Time, format string) string

func (*VS) Time2StrDate

func (*VS) Time2StrDate(tm time.Time) string

func (*VS) Time2StrFull

func (*VS) Time2StrFull(tm time.Time) string

func (*VS) Time2StrMicros

func (*VS) Time2StrMicros(tm time.Time) string

func (*VS) Time2StrMillis

func (*VS) Time2StrMillis(tm time.Time) string

func (*VS) TimeNowUtcMicros

func (slf *VS) TimeNowUtcMicros() (dt time.Time, dts string)

Jump to

Keyboard shortcuts

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