×

Golang Tutorial

Golang Reference

Golang Programs

Golang Practice

Golang Miscellaneous

Golang unicode.Version Constant with Examples

Golang | unicode.Version Constant: Here, we are going to learn about the Version constant of the unicode package with its usages, syntax, and examples.
Submitted by IncludeHelp, on September 16, 2021

unicode.Version Constant

The Version constant is an inbuilt constant of the unicode package which is used to get the version which is the Unicode edition from which the tables are derived. The value of unicode.Version constant is "13.0.0".

Syntax

string unicode.Version

Parameters

  • None

Return Value

The return type of the unicode.Version constant is a string, it returns the version which is the Unicode edition from which the tables are derived.

Example

// Golang program to demonstrate the
// example of unicode.Version constant

package main

import (
	"fmt"
	"unicode"
)

func main() {
	fmt.Printf("Value of unicode.Version: %s\n",
		unicode.Version)
	fmt.Printf("Type of unicode.Version: %T\n",
		unicode.Version)
}

Output:

Value of unicode.Version: 13.0.0
Type of unicode.Version: string

Golang unicode Package »




Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.