/
niceSOFT
/
git-lfs
Обзор
Документация
Войти
/
niceSOFT
/
git-lfs
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
git/filter_process_status.go
33 строки
908 B
Chris Darroch
make additional message strings translatable
30 янв 2022, 09:36
30 янв 2022, 09:36
04abbd8
Код
Авторство
О чём код?
package git import "github.com/git-lfs/git-lfs/v3/tr" // FilterProcessStatus is a constant type representing the various valid // responses for `status=` in the Git filtering process protocol. type FilterProcessStatus uint8 const ( // StatusSuccess is a valid response when a successful event has // occurred. StatusSuccess FilterProcessStatus = iota + 1 // StatusDelay is a valid response when a delay has occurred. StatusDelay // StatusError is a valid response when an error has occurred. StatusError ) // String implements fmt.Stringer by returning a protocol-compliant // representation of the receiving status, or panic()-ing if the Status is // unknown. func (s FilterProcessStatus) String() string { switch s { case StatusSuccess: return "success" case StatusDelay: return "delayed" case StatusError: return "error" } panic(tr.Tr.Get("unknown FilterProcessStatus '%d'", s)) }