• four@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 days ago

    Shouldnt it be return UUID { uuid: uuid.uuid } ?

    I think it would make more sense AND more uuid per UUID

    • Rikudou_Sage@lemmings.worldOP
      link
      fedilink
      arrow-up
      3
      ·
      3 days ago

      The first UUID is a local type, the second is the name of an embedded struct, the third is the name of the variable.

      The struct looks something like this (writing this on my phone)

      type UUID struct { uuid.UUID }

      So, basically, this is a custom wrapper for a third party UUID implementation.