gooo The Go ports lab / experimental

UUID PARSING / COMPILED GOOO

Parse a UUID. See every returned field.

Inspect Google UUID Parse and the returned UUID’s String through Gooo. Parsing can fail while returning a partial UUID with correctly shaped text. Check parsed before using the returned value.

Loading the compiled UUID parser…

Original decoded input


            
          

The decoded input may contain up to 1,024 UTF-8 bytes. Empty text is accepted as an input and produces a parser length error. Input is never trimmed or Unicode-normalized. Unpaired UTF-16 surrogates become U+FFFD during UTF-8 binding; a leading U+FEFF is preserved. Paste or drop replaces the whole input and preserves text delivered by your browser before editor line-ending conversion. JSON string mode supplies exact escapes such as "\r\n\uD800"; notation is limited to 8,192 UTF-16 code units.

Compiled result

No parsing has run.

What the parser returns

parsed reports whether the original parser error was nil. canonical_uuid is the returned UUID’s lowercase text on success and error. error preserves the original error text; it is empty on success. invalid_length preserves the original length-error classification.

The parser accepts hyphenated, raw hexadecimal, case-insensitive urn:uuid:, and 38-byte wrapped input. For 38 bytes, it examines the middle 36 bytes and permits arbitrary outer delimiters, including square brackets. This follows Parse; the separate Validate operation has different rules.

The last invalid pair 0g in raw text can leave a returned byte of ff; the same hyphenated failure leaves that byte at 00. Both calls have parsed: false. A correctly shaped returned UUID does not establish parser success.

The page calls the unchanged compiled Gooo ParseCanonical activity in a Worker after verifying WebAssembly size and SHA-256 against the build manifest. JavaScript handles input binding and transport. This Text adaptation does not expose Go’s binary UUID array, ParseBytes or full-library compatibility. Parsing does not establish uniqueness, authorization or a particular UUID version.

Waiting for the verified program manifest.

Read the bound Gooo parser · Source versions and hashes · Google UUID license · Report a problem ↗