{"repo":"skit-ai/vcore","free":true,"listed":false,"github":"https://github.com/skit-ai/vcore","clone":"git clone https://github.com/skit-ai/vcore.git","description":"Common, utility packages for Go","language":"Go","stars":21,"topics":["golang","go","errors","log","orm"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"vcore Golang Common utility functions vcore/errors The errors package is a wrapper around the brilliant pkg/errors library. The major difference between pkg/errors and this library is support for the following: Wrapping of an error into a custom error so as to add a stacktrace. Allows creation of errors with a stack which have no cause(nil cause). Every error created supports the fatality interface which is meant to inform us if the error is fatal or not. Every error created supports the tagged interface which returns any tags( map[string]string ) associated with an error. The stacktrace of the error will return the stactrace starting from the deepest cause. Basic Usage Create Error without cause: This error is non-fatal. As marked by the last bool flag. Create Error with a cause: Check if an error is fatal Get the stacktrace of the error and print it: Alternatively, vcore/crypto The crypto module is meant to help services implement various cryptographic functions with ease. Current features include - 1. Encryption of []byte and string. Supported techniques - - AES-256-GCM 2. Decryption of []byte. Supported techniques - - AES-256-GCM AES-256 is PCI DSS compliant, as it is a recognised industry standard encryption. This module exports the following functions - 1. EncryptBytes: Encrypt a bytearray. Example usage - 2. EncryptString: Encrypt a string. Example usage - 3. DecryptBytes: Decrypt a bytearray. Example usage - Key management Vault is used to generate the encrypted data ","default_branch":null,"files":null,"tree":[],"storefront":"/r/skit-ai","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/skit-ai/vcore/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}