go-helper
用GO实现PHP&Laravel中 好用的各种方法,也提供很多非常好用的泛型方法
字符串
常规操作
- After
- AfterLast
- Any2String
- Before
- BeforeLast
- Contains
- ContainsAll
- EndsWith
- Explode
- Implode
- MbStrlen
- MbStrpos
- StartsWith
- Strlen
- Strpos
- StrRandom
- StrRepeat
- StrReplace
- Substr
- Trim
哈希
- MD5
JSON
- JsonDecode
- JsonEncode
URL操作
- Base64Decode
- Base64Encode
- HttpBuildQuery
- ParseUrl
- UrlDecode
- UrlEncode
数组
常规操作
- Chunk
- Column
- ColumnWithKey
- Combine
- CountValues
- Keys
- Rand
- Range
- Shuffle
- Sum
- Unique
- Values
- First
- GroupBy
- Where
- Pop
- Push
- Shift
- Unshift
文件
常规操作
-
__DIR__
- DirName
- FClose
- FExists
- FGetContents
- FOpen
- FPathInfo
- FPutContent
- FPuts
- FRead
- FReadFile
- FWrite
- IsDir
- IsFile
- PathInfo
- Touch
- Unlink