utils

module
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MIT

README

utils

Go codecov Go Report Card Release

go utils

Install

go get github.com/go-ecosystem/utils/v2

Packages

  • array
    • Contains
    • HasDuplicateItem
    • RemoveDuplicateElements
    • Map
  • convert
    • StringToBytes
    • BytesToString
    • JSONToMap
    • MapToJSON
  • crypto
    • EncryptPwd
    • ComparePwd
  • file
    • Exists
    • Exist
    • Mode
    • WriteStringToFile
    • AppendStringToFile
    • GetDirList
    • GetDirListWithFilter
    • RecreateDir
    • GetFilepaths
    • GetFiles
  • flag
    • IsTesting
  • http
    • ClientIP
  • json
    • ToString
    • FromString
    • ToMap
    • Convert
  • log
    • E
    • W
    • H
    • I
    • V
  • middleware
    • interceptor
      • Recovery
    • Cors
    • Recovery
  • net
    • GetIP
  • os
    • RunBashCommand
    • RunCommand
    • RunCommandWithStdin
  • response
    • UnknownError
    • DBConnectError
    • DBOperationError
    • RequestParamError
    • TokenInvalidError
    • PermissionDeniedError
    • JSON
    • OK
    • Err
    • Abort
  • strings
    • Capitalize
    • IsCapitalize
    • SplitToChunks
    • Rand
    • IsNumber
    • RemoveEmpties
    • Remove
  • version
    • Stringify
    • StringifyWithOps

Usage

see xxx_test.go file.

Directories

Path Synopsis
Package crypto useful crypto functions Reference: https://medium.com/@jcox250/password-hash-salt-using-golang-b041dc94cb72
Package crypto useful crypto functions Reference: https://medium.com/@jcox250/password-hash-salt-using-golang-b041dc94cb72

Jump to

Keyboard shortcuts

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