• m29h@feddit.nl
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Why don’t you just set the id to whatever ( e.g UUID) you want in your struct constructor. Alternatively I guess there are also mongodb specific client libraries for Go