Documentation ¶
Index ¶
- Constants
- func DownloadOldNames() (map[string]string, error)
- func ExtractTarGz(src io.Reader, dst io.Writer, name string) error
- func FTPDownload(target string) (bytes.Buffer, error)
- func UpdateWindowsTZMapping(target io.Writer) error
- type MapTimezones
- type MapZone
- type SupplementalData
- type Version
- type WindowsZones
Constants ¶
View Source
const ( StatusInitiating = 100 StatusRestartMarker = 110 StatusReadyMinute = 120 StatusAlreadyOpen = 125 StatusAboutToSend = 150 StatusCommandOK = 200 StatusCommandNotImplemented = 202 StatusSystem = 211 StatusDirectory = 212 StatusFile = 213 StatusHelp = 214 StatusName = 215 StatusReady = 220 StatusClosing = 221 StatusDataConnectionOpen = 225 StatusClosingDataConnection = 226 StatusPassiveMode = 227 StatusLongPassiveMode = 228 StatusExtendedPassiveMode = 229 StatusLoggedIn = 230 StatusLoggedOut = 231 StatusLogoutAck = 232 StatusAuthOK = 234 StatusRequestedFileActionOK = 250 StatusPathCreated = 257 StatusUserOK = 331 StatusLoginNeedAccount = 332 StatusRequestFilePending = 350 StatusNotAvailable = 421 StatusCanNotOpenDataConnection = 425 StatusTransfertAborted = 426 StatusInvalidCredentials = 430 StatusFileActionIgnored = 450 StatusActionAborted = 451 Status452 = 452 StatusBadCommand = 500 StatusBadArguments = 501 StatusNotImplemented = 502 StatusBadSequence = 503 StatusNotImplementedParameter = 504 StatusNotLoggedIn = 530 StatusStorNeedAccount = 532 StatusPageTypeUnknown = 551 StatusExceededStorage = 552 StatusBadFileName = 553 )
FTP status codes, defined in RFC 959
Variables ¶
This section is empty.
Functions ¶
func DownloadOldNames ¶
DownloadOldNames fetches the list of old tz names and returns a mapping
func FTPDownload ¶
UpdateOldNames fetches the list of old tz names and returns a mapping
func UpdateWindowsTZMapping ¶
Types ¶
type MapTimezones ¶
type SupplementalData ¶
type SupplementalData struct {
WindowsZones WindowsZones `xml:"windowsZones"`
}
func DownloadWindowsZones ¶
func DownloadWindowsZones() (SupplementalData, error)
DownloadWindowsZones fetches Windows mapping info from unicode.org
type WindowsZones ¶
type WindowsZones struct {
MapTimezones []MapTimezones `xml:"mapTimezones"`
}
Click to show internal directories.
Click to hide internal directories.