You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

38 lines
794 B

  1. // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
  2. package main
  3. import (
  4. "golang.org/x/text/language"
  5. "golang.org/x/text/message"
  6. "golang.org/x/text/message/catalog"
  7. )
  8. type dictionary struct {
  9. index []uint32
  10. data string
  11. }
  12. func (d *dictionary) Lookup(key string) (data string, ok bool) {
  13. p := messageKeyToIndex[key]
  14. start, end := d.index[p], d.index[p+1]
  15. if start == end {
  16. return "", false
  17. }
  18. return d.data[start:end], true
  19. }
  20. func init() {
  21. dict := map[string]catalog.Dictionary{}
  22. fallback := language.MustParse("en-US")
  23. cat, err := catalog.NewFromMap(dict, catalog.Fallback(fallback))
  24. if err != nil {
  25. panic(err)
  26. }
  27. message.DefaultCatalog = cat
  28. }
  29. var messageKeyToIndex = map[string]int{}
  30. // Total table size 0 bytes (0KiB); checksum: 811C9DC5