Categorygithub.com/slclub/utils
repositorypackage
0.0.0-20200615141356-cd24fe6f8ba6
Repository: https://github.com/slclub/utils.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

utils

Collect some go functions with good performance and convenient.

like Stings and byte convertion. generator.

There is a better suggestion to match the validator package

Install

go get github.com/slclub/utils

function list

import("github.com/slclub/utils/bytesconv") 
  • common
    • IsUnix() bool
    • EOL
example:
  // linux "\n"
  // windows "\r\n"
  utils.EOL
example:
  if utils.IsUnix() {
    do something in unix
  } else {
    do something in windows.
  }