command
Version:
v2.0.0-beta.2
Opens a new window with list of versions in this module.
Published: Jul 30, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Example: loading i18n messages from local JSON files.
Run:
go run ./examples/i18n
Try:
curl -H 'Accept-Language: en' localhost:8080/ # Hello, World!
curl -H 'Accept-Language: zh' localhost:8080/ # 你好,World!
curl -H 'Accept-Language: de' localhost:8080/ # falls back to en
Source Files
¶
Click to show internal directories.
Click to hide internal directories.