langId

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const NA_STR string = "N/A"

Variables

View Source
var (
	ToCamel    = glsg.ToCamel
	GetTextEOL = glsg.GetTextEOL
	GzipNew    = glfscsgp.GzipNew
)

Lib mapping

Functions

This section is empty.

Types

type LangId

type LangId struct {
	LangId []langIdEntry
	// contains filtered or unexported fields
}

LangId: Structure that hold 'BCP 47 Language Element' data

func LangIdNew

func LangIdNew(filename string) *LangId

LangIdNew: create a new structure.

func (*LangId) Read

func (lId *LangId) Read() (err error)

Read: json structure

func (*LangId) ReadGzip

func (lId *LangId) ReadGzip() error

Read: gzip json structure

func (*LangId) UpdateFromTxt

func (lId *LangId) UpdateFromTxt(filename string, dispAvailableVarNames ...bool) error

UpdateFromTxt: Create a new structure from a text file containing updated data. NOTE: the 'dispAvailableVarNames' option is only used to update or create the necessary variables contained in the internal structure, as well as the names of the list of available variables requiered while the software development process. Source data URL: https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry

func (*LangId) Write

func (lId *LangId) Write() error

Write: json structure

func (*LangId) WriteGzip

func (lId *LangId) WriteGzip() error

Write: gzip json structure

type LangIdBasic

type LangIdBasic struct {
	Filename string
	LangId   []langId
}

Basic version of RFC 5646 (BCP 47)

func LangIdBasicNew

func LangIdBasicNew(filename string) *LangIdBasic

*****************************************************

Language Id basic list is Based on the work from:
https://github.com/libyal
Licence: LGPLv3+

****************************************************** LangIdBasicNew: create structure tha hold a Basic version of RFC 5646 (BCP 47)

func (*LangIdBasic) Read

func (lId *LangIdBasic) Read() error

Read:

func (*LangIdBasic) Write

func (lId *LangIdBasic) Write() error

Write:

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL