---
title: "Discussion on \"Go Cheatsheet - Generate UUIDv4 String\" | Hashnode"
description: "Discussion on \"Go Cheatsheet - Generate UUIDv4 String\". Use 3rd-party package to generate uuidv4 string:\nStep 1\nInstall package:\ngo get github.com/google/uuid\n\nStep 2\nCall function:\nfunc main() {\n    uuidStr := uuid.NewString()\n    fmt.Println(uuidStr)\n}"
url: "https://hashnode.com/posts/go-cheatsheet-generate-uuidv4-string/6127e52422e1ba252a87feb9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Go Cheatsheet - Generate UUIDv4 String](https://hn.0xbf.me/go-cheatsheet-generate-uuidv4-string?utm_source=hashnode&utm_medium=feed)

Use 3rd-party package to generate uuidv4 string: Step 1 Install package: go get github.com/google/uuid Step 2 Call function: func main() { uuidStr := uuid.NewString() fmt.Println(uuidStr) }

Aug 26, 2021 · 1 min read · hn.0xbf.me  
Read the article

-   [#go](https://hashnode.com/tag/go)

## Written by

[0xBF](https://hashnode.com/@0xbf)

@0xbf

  
[View profile](https://hashnode.com/@0xbf)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
