/gotoscaffold

写了一些go常用函数,方便以后过来粘贴

Primary LanguageGo

                __                        ________      __    __
   ____ _____  / /_____  ______________ _/ __/ __/___  / /___/ /
  / __ `/ __ \/ __/ __ \/ ___/ ___/ __ `/ /_/ /_/ __ \/ / __  / 
 / /_/ / /_/ / /_/ /_/ (__  ) /__/ /_/ / __/ __/ /_/ / / /_/ /  
 \__, /\____/\__/\____/____/\___/\__,_/_/ /_/  \____/_/\__,_/   
/____/                                                          
                                                                          

gotoscaffold

golang, 集成了一些常用的功能函数。

A golang, some commonly used functions are collected.

Usage

go get github.com/mysticbinary/gotoscaffold

Function introduction of Packs

  • gtserr
    • ExitOnError
  • gtsfile
    • WriteStructToFile
    • ReadFileToStruct
    • TextLinesToSlice
    • CreateFile
    • CreateDir
    • IsDirExist
    • WriteAtEnd
    • RemoveFile
    • RemoveAll
  • gtslog
    • LogINFO
    • LogWARNING
    • LogERROR
  • gtsmath
    • SumSlice
    • AverageSlice
  • gtsmonitor
    • MonitorWebsiteUptime
  • gtsordr
    • FindSliceMax
    • FindMaxAndSecond
    • RemoveIntRepeat
    • RemoveRepByLoop
    • RemoveRepByMap
    • RemoveStrRepeat
    • SmallToLargeOrder
  • gtsrequest
    • SendEmail
  • gtstime
    • GetNow
    • GetNowDay
    • GetXMonthsAgo
    • StrtodayToUnixNanoTime
    • Strtoday24ToUnixNanoTime

Tips

这个项目正在建设中,可能会含有错误,请谨慎使用。

This project is under construction and may contain bugs.

⚠️ Use with caution. You are welcome to submit some Issues.