Skip to content

Commit 7647743

Browse files
M09Icclaude
andcommitted
refactor: migrate parsers import to utils/parsers
Replace old github.com/chainreactors/parsers with the unified github.com/chainreactors/utils/parsers module. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 24d876e commit 7647743

4 files changed

Lines changed: 11 additions & 19 deletions

File tree

go.mod

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ require (
99
github.com/chainreactors/files v0.0.0-20240716182835-7884ee1e77f0
1010
github.com/chainreactors/logs v0.0.0-20260508055944-c678762ed15c
1111
github.com/chainreactors/mals v0.0.0-20250717185731-227f71a931fa
12-
github.com/chainreactors/parsers v0.0.0-20250225073555-ab576124d61f
1312
github.com/chainreactors/rem v0.3.0
1413
github.com/chainreactors/tui v0.1.1
15-
github.com/chainreactors/utils v0.0.0-20260529172343-6465cb8568b2
14+
github.com/chainreactors/tui/console v0.0.0-00010101000000-000000000000
15+
github.com/chainreactors/utils v0.0.0-20260626175554-d3e25e531450
1616
github.com/chainreactors/utils/cert v0.0.0-20260624181253-2b3d0b35862f
17+
github.com/chainreactors/utils/parsers v0.0.0-20260629054935-23a3e0a235f9
1718
github.com/chainreactors/utils/pty v0.0.0-20260620140628-4a3715583ae7
1819
github.com/charmbracelet/bubbletea v1.3.10
1920
github.com/charmbracelet/glamour v0.8.0
@@ -37,7 +38,6 @@ require (
3738
github.com/muesli/termenv v0.16.0
3839
github.com/ncruces/go-sqlite3 v0.9.0
3940
github.com/nikoksr/notify v0.41.0
40-
github.com/chainreactors/tui/console v0.0.0-00010101000000-000000000000
4141
github.com/robfig/cron/v3 v3.0.0
4242
github.com/saintfish/chardet v0.0.0-20230101081208-5e3ef4b5456d
4343
github.com/soheilhy/cmux v0.1.5
@@ -108,8 +108,8 @@ require (
108108
github.com/cbroglie/mustache v1.4.0 // indirect
109109
github.com/cenkalti/backoff/v5 v5.0.3 // indirect
110110
github.com/cespare/xxhash/v2 v2.3.0 // indirect
111-
github.com/chainreactors/fingers v1.2.1-0.20260608084741-385e7d586d6f // indirect
112111
github.com/chainreactors/proxyclient v1.0.4-0.20260218115902-74a84a4535b0 // indirect
112+
github.com/chainreactors/tui/readline v1.1.3 // indirect
113113
github.com/charmbracelet/bubbles v0.21.1-0.20250623103423-23b8fd6302d7 // indirect
114114
github.com/charmbracelet/colorprofile v0.4.3 // indirect
115115
github.com/charmbracelet/harmonica v0.2.0 // indirect
@@ -192,7 +192,6 @@ require (
192192
github.com/opencontainers/go-digest v1.0.0 // indirect
193193
github.com/opencontainers/image-spec v1.1.1 // indirect
194194
github.com/pkg/errors v0.9.1 // indirect
195-
github.com/chainreactors/tui/readline v1.1.3 // indirect
196195
github.com/riobard/go-bloom v0.0.0-20200614022211-cdc8013cb5b3 // indirect
197196
github.com/rivo/uniseg v0.4.7 // indirect
198197
github.com/saferwall/pe v1.5.6 // indirect

go.sum

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -206,29 +206,22 @@ github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XL
206206
github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
207207
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
208208
github.com/chainreactors/files v0.0.0-20231102192550-a652458cee26/go.mod h1:/Xa9YXhjBlaC33JTD6ZTJFig6pcplak2IDcovf42/6A=
209-
github.com/chainreactors/files v0.0.0-20231123083421-cea5b4ad18a8/go.mod h1:/Xa9YXhjBlaC33JTD6ZTJFig6pcplak2IDcovf42/6A=
210209
github.com/chainreactors/files v0.0.0-20240716182835-7884ee1e77f0 h1:cU3sGEODXZsUZGBXfnz0nyxF6+37vA+ZGDx6L/FKN4o=
211210
github.com/chainreactors/files v0.0.0-20240716182835-7884ee1e77f0/go.mod h1:NSxGNMRWryAyrDzZpVwmujI22wbGw6c52bQOd5zEvyU=
212-
github.com/chainreactors/fingers v0.0.0-20240702104653-a66e34aa41df/go.mod h1:l8AO6ZbIL8WQ8PkihCK/MD6Iww/O+LY/osAhRJjThs4=
213-
github.com/chainreactors/fingers v1.2.1-0.20260608084741-385e7d586d6f h1:YRhBdXcJN6Nt6wIrLG06eUUcj/rycBEmQXqyfQvlAV8=
214-
github.com/chainreactors/fingers v1.2.1-0.20260608084741-385e7d586d6f/go.mod h1:HL+9nwb5HNXJMboiQ7Kwy00ZSTXYTAuWw9IrYIoARH8=
215-
github.com/chainreactors/logs v0.0.0-20240207121836-c946f072f81f/go.mod h1:6Mv6W70JrtL6VClulZhmMRZnoYpcTahcDTKLMNEjK0o=
216211
github.com/chainreactors/logs v0.0.0-20241115105204-6132e39f5261/go.mod h1:6Mv6W70JrtL6VClulZhmMRZnoYpcTahcDTKLMNEjK0o=
217212
github.com/chainreactors/logs v0.0.0-20260508055944-c678762ed15c h1:6Net2Mgo/qo6ADFBZJWWScKuMfZ0rbzLqSCVDuLKFdc=
218213
github.com/chainreactors/logs v0.0.0-20260508055944-c678762ed15c/go.mod h1:VrXmYPbNN5AVoo1sc5aeyPVBYqubMdb3KO/tn5rRZpo=
219214
github.com/chainreactors/mals v0.0.0-20250717185731-227f71a931fa h1:9SQ1UAaXq6eblcvC5cBAhuQrpCNEs5+jchjT3KXMXoc=
220215
github.com/chainreactors/mals v0.0.0-20250717185731-227f71a931fa/go.mod h1:r/dAAqtQJZTo47CgWtdDvpSjPQHg881rcwBY2p9BEOY=
221-
github.com/chainreactors/parsers v0.0.0-20250225073555-ab576124d61f h1:SfLaU4TMVjloWhLnbajJWtITX/QH9HzS6mV+uNSMpsc=
222-
github.com/chainreactors/parsers v0.0.0-20250225073555-ab576124d61f/go.mod h1:7rXdYz6jrdjF0WUH1ICcAXKIKKjKmJo2PU8u43V7jkA=
223216
github.com/chainreactors/proxyclient v1.0.3 h1:afnymFICAEqzG4rVMMJhd4Tqrx6LfTssUbo+T8P52vs=
224217
github.com/chainreactors/proxyclient v1.0.3/go.mod h1:kuB9olIK/GOW3lrpbYcJ2Uxb1aKsQPQmxewfCyIZ/0g=
225-
github.com/chainreactors/utils v0.0.0-20240528085651-ba1b255482c1/go.mod h1:JA4eiQZm+7AsfjXBcIzIdVKBEhDCb16eNtWFCGTxlvs=
226-
github.com/chainreactors/utils v0.0.0-20240704062557-662d623b74f4/go.mod h1:JA4eiQZm+7AsfjXBcIzIdVKBEhDCb16eNtWFCGTxlvs=
227218
github.com/chainreactors/utils v0.0.0-20240716182459-e85f2b01ee16/go.mod h1:LajXuvESQwP+qCMAvlcoSXppQCjuLlBrnQpu9XQ1HtU=
228-
github.com/chainreactors/utils v0.0.0-20260529172343-6465cb8568b2 h1:ygWUs11z/bg/NsTuH1p37Excj7+IAoRSNGpHBrCsVk8=
229-
github.com/chainreactors/utils v0.0.0-20260529172343-6465cb8568b2/go.mod h1:LajXuvESQwP+qCMAvlcoSXppQCjuLlBrnQpu9XQ1HtU=
219+
github.com/chainreactors/utils v0.0.0-20260626175554-d3e25e531450 h1:jid2THKKoGUesM5EvDOieck+rMiS5hyk8bQOBlbMdz8=
220+
github.com/chainreactors/utils v0.0.0-20260626175554-d3e25e531450/go.mod h1:xwbUlFoSSxLHujyb8D48o1s2DqmEAxUNfxIy0DVUmcg=
230221
github.com/chainreactors/utils/cert v0.0.0-20260624181253-2b3d0b35862f h1:7KonUAvkZhpmK8RDwDBCuey0qXeoqxJ7uWjoXqzL2z4=
231222
github.com/chainreactors/utils/cert v0.0.0-20260624181253-2b3d0b35862f/go.mod h1:xvvWMcU9Fcht6GR1cc9ceAZ3/Hl2HrkoRzpeyOzx1rQ=
223+
github.com/chainreactors/utils/parsers v0.0.0-20260629054935-23a3e0a235f9 h1:IOqCX8Hol0s8xul5d1VRQFjqvKyRCx1djU1MuLCLEZg=
224+
github.com/chainreactors/utils/parsers v0.0.0-20260629054935-23a3e0a235f9/go.mod h1:S9lkpQ1I4wcBq0YEBde/UPmR061IPok3bLl7aPz6Vkk=
232225
github.com/chainreactors/utils/pty v0.0.0-20260620140628-4a3715583ae7 h1:CGawcdIrnZODmi5fsbTno10WLqKCpTFyH86Jvc1bg5k=
233226
github.com/chainreactors/utils/pty v0.0.0-20260620140628-4a3715583ae7/go.mod h1:RW1v+8hFMeO9+TJyQ1iIx9Ea37s+B7BaDf9fyJ0OEC4=
234227
github.com/charmbracelet/bubbles v0.21.1-0.20250623103423-23b8fd6302d7 h1:JFgG/xnwFfbezlUnFMJy0nusZvytYysV4SCS2cYbvws=
@@ -345,7 +338,6 @@ github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f h1:Y/CXytFA4m6
345338
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f/go.mod h1:vw97MGsxSvLiUE2X8qFplwetxpGLQrlU1Q9AUEIzCaM=
346339
github.com/evertras/bubble-table v0.19.2 h1:u77oiM6JlRR+CvS5FZc3Hz+J6iEsvEDcR5kO8OFb1Yw=
347340
github.com/evertras/bubble-table v0.19.2/go.mod h1:ifHujS1YxwnYSOgcR2+m3GnJ84f7CVU/4kUOxUCjEbQ=
348-
github.com/expr-lang/expr v1.16.9/go.mod h1:8/vRC7+7HBzESEqt5kKpYXxrxkr31SaO8r40VO/1IT4=
349341
github.com/facebookincubator/flog v0.0.0-20190930132826-d2511d0ce33c/go.mod h1:QGzNH9ujQ2ZUr/CjDGZGWeDAVStrWNjHeEcjJL96Nuk=
350342
github.com/facebookincubator/nvdtools v0.1.5 h1:jbmDT1nd6+k+rlvKhnkgMokrCAzHoASWE5LtHbX2qFQ=
351343
github.com/facebookincubator/nvdtools v0.1.5/go.mod h1:Kh55SAWnjckS96TBSrXI99KrEKH4iB0OJby3N8GRJO4=
@@ -787,6 +779,7 @@ github.com/spf13/viper v1.10.0/go.mod h1:SoyBPwAtKDzypXNDFKN5kzH7ppppbGZtls1UpIy
787779
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
788780
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
789781
github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE=
782+
github.com/stretchr/objx v0.3.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE=
790783
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
791784
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
792785
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=

helper/utils/output/cred.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"encoding/json"
66
"fmt"
77
"github.com/chainreactors/IoM-go/consts"
8-
"github.com/chainreactors/parsers"
8+
"github.com/chainreactors/utils/parsers"
99
"regexp"
1010
"strings"
1111
)

helper/utils/output/port.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"encoding/json"
66
"fmt"
77
"github.com/chainreactors/IoM-go/consts"
8-
"github.com/chainreactors/parsers"
8+
"github.com/chainreactors/utils/parsers"
99
"strings"
1010
)
1111

0 commit comments

Comments
 (0)