mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-21 16:01:22 +02:00
small string split join optimization
This commit is contained in:
@@ -2,8 +2,6 @@ package strutils
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
|
||||
"github.com/yusing/go-proxy/internal/logging"
|
||||
)
|
||||
|
||||
type Parser interface {
|
||||
@@ -22,7 +20,7 @@ func Parse[T Parser](from string) (t T, err error) {
|
||||
func MustParse[T Parser](from string) T {
|
||||
t, err := Parse[T](from)
|
||||
if err != nil {
|
||||
logging.Panic().Err(err).Msg("must failed")
|
||||
panic("must failed: " + err.Error())
|
||||
}
|
||||
return t
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user