v0.0.264 added Valid() to id-gen
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 49s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 49s
This commit is contained in:
parent
3d4afe7b25
commit
da52bb5c90
@ -209,6 +209,13 @@ func fmtIDOutput(cs string, ids []IDDef, pkgname string) string {
|
|||||||
|
|
||||||
str += "" + "\n"
|
str += "" + "\n"
|
||||||
|
|
||||||
|
str += "func (i " + iddef.Name + ") Valid() bool {" + "\n"
|
||||||
|
str += " _, err := primitive.ObjectIDFromHex(string(i))" + "\n"
|
||||||
|
str += " return err == nil" + "\n"
|
||||||
|
str += "}" + "\n"
|
||||||
|
|
||||||
|
str += "" + "\n"
|
||||||
|
|
||||||
if anyDef != nil {
|
if anyDef != nil {
|
||||||
str += "func (i " + iddef.Name + ") AsAny() " + anyDef.Name + " {" + "\n"
|
str += "func (i " + iddef.Name + ") AsAny() " + anyDef.Name + " {" + "\n"
|
||||||
str += " return " + anyDef.Name + "(i)" + "\n"
|
str += " return " + anyDef.Name + "(i)" + "\n"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package goext
|
package goext
|
||||||
|
|
||||||
const GoextVersion = "0.0.263"
|
const GoextVersion = "0.0.264"
|
||||||
|
|
||||||
const GoextVersionTimestamp = "2023-09-18T10:43:29+0200"
|
const GoextVersionTimestamp = "2023-09-18T11:46:17+0200"
|
||||||
|
Loading…
Reference in New Issue
Block a user