update readme and add license
This commit is contained in:
parent
198bceb9ba
commit
343d4893f0
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2024 Pedro Pérez Banda
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
27
README.md
27
README.md
@ -1,19 +1,16 @@
|
|||||||
# Gopher Toolbox
|
# Gopher Toolbox
|
||||||
|
|
||||||
Es una librería donde se concentra el código _boilerplate_ que se usan en
|
It is a library that gathers the boilerplate code used in different projects.
|
||||||
distintos proyectos. Incluyen lo siguiente:
|
It includes the following:
|
||||||
|
|
||||||
- Implementación controladores de bases de datos:
|
- Database controller implementations:
|
||||||
- [PGX Pool](github.com/jackc/pgx/v5)
|
- [PGX Pool](github.com/jackc/pgx/v5)
|
||||||
- MySQL
|
- MySQL
|
||||||
|
|
||||||
|
- Utilities for converting [pgtype](github.com/jackc/pgx/v5/pgtype) to Go types.
|
||||||
|
|
||||||
- Utilidades para conversión de tipos [pgtype](github.com/jackc/pgx/v5/pgtype) a
|
- Random data generation for unit tests, similar to the [Faker](https://faker.readthedocs.io/en/master/)
|
||||||
tipos de Golang.
|
in Python.
|
||||||
|
|
||||||
|
|
||||||
- Generación de datos aleatorios para pruebas unitarias, similar a librería
|
|
||||||
[Faker](https://faker.readthedocs.io/en/master/) de Python.
|
|
||||||
|
|
||||||
```go
|
```go
|
||||||
MaleName() string
|
MaleName() string
|
||||||
@ -32,15 +29,13 @@ NumericString(length int) string
|
|||||||
Sentence(min, max int) string
|
Sentence(min, max int) string
|
||||||
```
|
```
|
||||||
|
|
||||||
- Conversión de ficheros Excel a tipos estructurados. Se le pasa el tipo del
|
- Conversion of Excel files to structured types. You pass the struct type to the
|
||||||
_struct_ a la función `Convert[T any](bookPath, sheetName string)` y te
|
function `Convert[T any](bookPath, sheetName string)`, and it will return the
|
||||||
devolverá los datos del tipo `dataExcel []T`.
|
data as `dataExcel []T`.
|
||||||
|
|
||||||
|
- Constants for HTTP handlers.
|
||||||
|
|
||||||
- Constantes para los manejadores HTTP.
|
- Miscelaneous utilities
|
||||||
|
|
||||||
|
|
||||||
- Utilidades varias
|
|
||||||
|
|
||||||
```go
|
```go
|
||||||
CorrectTimezone(timeStamp time.Time) time.Time
|
CorrectTimezone(timeStamp time.Time) time.Time
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user