nabbar 3a2c52195f Rework Package Database
Package Database/gorm:
- move package database using gorm, to package database/gorm
- update config component following

Package Database/KVItem:
- create new package to manage item of KV Db
- allow to track change on item model
- allow to store only if changed
- embedded driver function to load / store to make instance portable

Package Database/KVTable:
- create new package to manage a table (list of map key : value)
- embedded driver instance to make instance portable
- allow to walk, list, get items with KVItem instance

Package Database/KVDriver:
- create new package to wrap db KV function to KVTable awaiting function
- Allow to skip function Walk replace by a n internal call of function List and Get

Package Database/Map:
- create new package to wrap KV function usage of map[comparable]any to KVDriver model
- Use json marshall/unmarshall between map[comparable]any to model any
2023-08-22 19:35:33 +02:00
2023-08-22 19:35:16 +02:00
2023-06-26 08:36:29 +02:00
2023-08-22 19:35:16 +02:00
2023-06-26 08:36:29 +02:00
2023-07-26 21:11:39 +02:00
2023-08-22 19:35:33 +02:00
2023-06-02 10:26:35 +02:00
2023-06-26 08:36:29 +02:00
2023-08-22 19:35:33 +02:00
2023-08-22 19:35:33 +02:00
2022-03-16 15:08:33 +01:00
2023-07-26 21:11:39 +02:00
2023-06-26 08:36:29 +02:00
2023-06-26 08:36:29 +02:00
2023-06-26 08:36:29 +02:00
2023-08-06 14:33:36 +02:00
2022-09-13 12:31:04 +02:00
2023-08-06 14:33:36 +02:00
2023-06-26 08:36:29 +02:00
2023-07-26 21:11:39 +02:00
2023-07-26 21:11:39 +02:00
2021-04-15 15:42:49 +02:00
2022-09-13 12:31:04 +02:00
2023-08-08 13:47:36 +02:00
2023-06-26 08:36:29 +02:00
2022-09-13 12:31:04 +02:00
2023-08-06 14:33:36 +02:00
2023-07-28 13:33:22 +02:00
2023-08-22 19:35:16 +02:00
2023-06-26 08:36:29 +02:00
2023-08-06 14:30:52 +02:00
2023-05-15 14:48:57 +02:00
2023-06-26 08:36:29 +02:00
2021-09-13 08:55:42 +02:00
2023-06-02 10:26:35 +02:00
2020-01-04 14:42:49 +01:00
2020-01-04 14:42:49 +01:00
2023-08-22 19:35:16 +02:00
2021-12-29 16:40:57 +01:00
2021-04-23 13:38:43 +02:00
2021-12-30 13:27:14 +01:00

Go

golib : custom lib for go

snyk project : https://app.snyk.io/org/nabbar/project/2f55a2b8-6015-4db1-b859-c2bc3b7548a7

using in source code

first get the source dependancies

go get -u github.com/nabbar/golib/...

second, import the needed lib in your code

import "github.com/nabbar/golib/version"

Details of packages :

Build tags

To build static, pure go, some packages need to use tags osusergo and netgo, like this

go build -a -tags osusergo,netgo -installsuffix cgo ...
Description
custom libraries for go
Readme MIT 61 MiB
Languages
Go 99.7%
Shell 0.3%