diff options
author | EuAndreh <eu@euandre.org> | 2025-05-15 15:00:26 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2025-05-15 15:00:26 -0300 |
commit | f80cf3fbed01c7e89b83ace5d9df0334edc01135 (patch) | |
tree | 9ddea043971cf299ac3191fa08d957e73a55a661 /src/pds.go | |
parent | src/pds.go: Add NewVectorOf() (diff) | |
download | pds-f80cf3fbed01c7e89b83ace5d9df0334edc01135.tar.gz pds-f80cf3fbed01c7e89b83ace5d9df0334edc01135.tar.xz |
Setup i18n with gotext
Diffstat (limited to '')
-rw-r--r-- | src/pds.go | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -48,8 +48,12 @@ import ( "reflect" "sort" "strings" + + gt "gotext" ) + + // Vector is a dense, ordered, indexed collections. They are analogous to slices // in Go. They can be updated by appending to the end of the vector, prepending // values to the beginning of the vector, or updating existing indexes in the @@ -101,7 +105,9 @@ func (l *Vector[T]) cap() int { func (l *Vector[T]) Get(index int) T { if index < 0 || index >= l.size { panic(fmt.Sprintf( - "immutable.Vector.Get: index %d out of bounds", + gt.Gettext( + "immutable.Vector.Get: index %d out of bounds", + ), index, )) } |