Skip to content

noamt/go-cldr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GO-CLDR

CircleCI

A (still partial) implementation of Unicode’s CLDR in Go

Examples

Supplemental

First Day

Get the first day of the week for a given region.

package main

import (
    "github.com/noamt/go-cldr/supplemental"
    "golang.org/x/text/language"
)

func main() {
    tag, _ := language.Parse("en-US")
    region, _ := tag.Region()
    weekDay := supplemental.FirstDay.ByRegion(region)
    println("First day is", weekDay)
}

Building

$ go generate
$ go test -cover ./...