Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
0ddfaf666b
|
|||
9b9a79b4ad
|
|||
5a8d7110e4
|
@@ -167,10 +167,7 @@ func (id {{.Name}}) Valid() error {
|
||||
return validateID(prefix{{.Name}}, string(id))
|
||||
}
|
||||
|
||||
func (i *{{.Name}}) String() string {
|
||||
if i == nil {
|
||||
return "<nil>"
|
||||
}
|
||||
func (i {{.Name}}) String() string {
|
||||
return string(i)
|
||||
}
|
||||
|
||||
|
@@ -69,10 +69,7 @@ func (e {{.EnumTypeName}}) ValuesMeta() []enums.EnumMetaValue {
|
||||
}
|
||||
|
||||
{{if $hasStr}}
|
||||
func (e *{{.EnumTypeName}}) String() string {
|
||||
if e == nil {
|
||||
return "<nil>"
|
||||
}
|
||||
func (e {{.EnumTypeName}}) String() string {
|
||||
return string(e)
|
||||
}
|
||||
{{end}}
|
||||
|
@@ -21,10 +21,7 @@ func (i {{.Name}}) MarshalBSONValue() (bsontype.Type, []byte, error) {
|
||||
}
|
||||
}
|
||||
|
||||
func (i *{{.Name}}) String() string {
|
||||
if i == nil {
|
||||
return "<nil>"
|
||||
}
|
||||
func (i {{.Name}}) String() string {
|
||||
return string(i)
|
||||
}
|
||||
|
||||
|
@@ -160,8 +160,8 @@ func (ee *ExErr) FormatLog(lvl LogPrintLevel) string {
|
||||
for curr := ee; curr != nil; curr = curr.OriginalError {
|
||||
indent += " "
|
||||
|
||||
etype := ee.Type.Key
|
||||
if ee.Type == TypeWrap {
|
||||
etype := curr.Type.Key
|
||||
if curr.Type == TypeWrap {
|
||||
etype = "~"
|
||||
}
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
package goext
|
||||
|
||||
const GoextVersion = "0.0.534"
|
||||
const GoextVersion = "0.0.537"
|
||||
|
||||
const GoextVersionTimestamp = "2024-10-22T09:40:53+0200"
|
||||
const GoextVersionTimestamp = "2024-10-26T23:38:13+0200"
|
||||
|
Reference in New Issue
Block a user