- JSON Formatter/Viewer
Format, minify, visualize and validate JSON.
- JSON Diff
Compare two JSON objects.
- JSON Schema Validator
Validate JSON schema online
- Base64 Encode/Decode
Encode and decode Base64.
- URL Encode/Decode
Encode and decode URL.
- UUID Generator v4 / v1
Generate UUIDs in v4 and other versions.
- Text Hash
Generate cryptographic hashes from your text input using a wide variety of algorithms.
- File Hash
Generate cryptographic hashes from your file using a wide variety of algorithms.
- JWT Decoder & Validator
Decode and validate JSON Web Tokens.
- CSV Viewer
View CSV data in a table.
- CSV to JSON Converter
Convert CSV to JSON.
- JSON to CSV Converter
Convert JSON to CSV.
Golang UUID V4
This page provides details and a Golang snippet on how to generate a UUID version 4.
package main
import (
"fmt"
"github.com/google/uuid"
)
func main() {
uid := uuid.New()
fmt.Println(uid)
}
This Golang code snippet uses the 'uuid' package from Google. It includes the 'fmt' and 'github.com/google/uuid' libraries at the beginning.
In the main function, it calls the 'uuid.New()' function to generate a new UUID version 4. This generated UUID is then printed to the console using 'fmt.Println' function.