- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for DefaultUserPrefs (0.4 sec)
-
src/cmd/go/testdata/mod/rsc.io_sampler_v1.3.1.txt
// If no prefs are given, Hello uses DefaultUserPrefs. func Hello(prefs ...language.Tag) string { if len(prefs) == 0 { prefs = DefaultUserPrefs() } return hello.find(prefs) } // Glass returns a localized silly phrase. // If no prefs are given, Glass uses DefaultUserPrefs. func Glass(prefs ...language.Tag) string { if len(prefs) == 0 { prefs = DefaultUserPrefs() } return glass.find(prefs) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 12 20:46:50 UTC 2018 - 4.7K bytes - Viewed (0) -
src/cmd/go/testdata/mod/rsc.io_sampler_v1.99.99.txt
package sampler // import "rsc.io/sampler" import ( "os" "strings" "golang.org/x/text/language" ) // DefaultUserPrefs returns the default user language preferences. // It consults the $LC_ALL, $LC_MESSAGES, and $LANG environment // variables, in that order. func DefaultUserPrefs() []language.Tag { var prefs []language.Tag for _, k := range []string{"LC_ALL", "LC_MESSAGES", "LANG"} {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 12 20:46:50 UTC 2018 - 3.2K bytes - Viewed (0) -
src/cmd/go/testdata/mod/rsc.io_sampler_v1.3.0.txt
// If no prefs are given, Hello uses DefaultUserPrefs. func Hello(prefs ...language.Tag) string { if len(prefs) == 0 { prefs = DefaultUserPrefs() } return hello.find(prefs) } // Glass returns a localized silly phrase. // If no prefs are given, Glass uses DefaultUserPrefs. func Glass(prefs ...language.Tag) string { if len(prefs) == 0 { prefs = DefaultUserPrefs() } return glass.find(prefs) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 10 00:47:06 UTC 2018 - 4.7K bytes - Viewed (0) -
src/cmd/go/testdata/mod/rsc.io_sampler_v1.2.0.txt
package sampler // import "rsc.io/sampler" import ( "os" "strings" "golang.org/x/text/language" ) // DefaultUserPrefs returns the default user language preferences. // It consults the $LC_ALL, $LC_MESSAGES, and $LANG environment // variables, in that order. func DefaultUserPrefs() []language.Tag { var prefs []language.Tag for _, k := range []string{"LC_ALL", "LC_MESSAGES", "LANG"} {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 12 20:46:50 UTC 2018 - 3.2K bytes - Viewed (0) -
src/cmd/go/testdata/mod/rsc.io_sampler_v1.2.1.txt
package sampler // import "rsc.io/sampler" import ( "os" "strings" "golang.org/x/text/language" ) // DefaultUserPrefs returns the default user language preferences. // It consults the $LC_ALL, $LC_MESSAGES, and $LANG environment // variables, in that order. func DefaultUserPrefs() []language.Tag { var prefs []language.Tag for _, k := range []string{"LC_ALL", "LC_MESSAGES", "LANG"} {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 21 17:49:01 UTC 2021 - 3.1K bytes - Viewed (0)