Skip to content

Commit

Permalink
chore: update go version to 1.16, update some actions config
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Oct 2, 2022
1 parent 9229ff9 commit cf3e08b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ rules:
start_withs: [feat, new]
contains: ['feat:']
- name: Update
start_withs: [update, 'up:']
contains: ['update:']
start_withs: [up]
contains: ['update:', 'up:']
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go_version: [1.18, 1.15, 1.16, 1.17]
go_version: [1.18, 1.19, 1.16, 1.17]

steps:
- name: Check out code
Expand Down
34 changes: 18 additions & 16 deletions filters.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// Source code and other details for the project are available at GitHub:
//
// https://github.com/gookit/filter
// https://github.com/gookit/filter
//
// More usage please see README and test
package filter
Expand Down Expand Up @@ -36,28 +36,30 @@ var filterAliases = map[string]string{
"ltrim": "trimLeft",
"rtrim": "trimRight",
// --
"lcFirst": "lowerFirst",
"ucFirst": "upperFirst",
"ucWord": "upperWord",
"distinct": "unique",
"trimList": "trimStrings",
"trimSpace": "trim",
"uppercase": "upper",
"lowercase": "lower",
"escapeJs": "escapeJS",
"escapeHtml": "escapeHTML",
"urlEncode": "URLEncode",
"encodeUrl": "URLEncode",
"urlDecode": "URLDecode",
"decodeUrl": "URLDecode",
"lcFirst": "lowerFirst",
"ucFirst": "upperFirst",
"ucWord": "upperWord",
"distinct": "unique",
"trimList": "trimStrings",
"trim_list": "trimStrings",
"trim_strings": "trimStrings",
"trimSpace": "trim",
"uppercase": "upper",
"lowercase": "lower",
"escapeJs": "escapeJS",
"escapeHtml": "escapeHTML",
"urlEncode": "URLEncode",
"encodeUrl": "URLEncode",
"urlDecode": "URLDecode",
"decodeUrl": "URLDecode",
// convert string
"str2ints": "strToInts",
"str2arr": "strToSlice",
"str2list": "strToSlice",
"str2array": "strToSlice",
"strToArr": "strToSlice",
"str2time": "strToTime",
// strings2ints
// strings to ints
"strings2ints": "stringsToInts",
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/gookit/filter

go 1.15
go 1.16

require (
github.com/gookit/goutil v0.5.12
Expand Down

0 comments on commit cf3e08b

Please sign in to comment.