Skip to content

Instantly share code, notes, and snippets.

View daison12006013's full-sized avatar
🤘
Hi there buddy!

Daison Cariño daison12006013

🤘
Hi there buddy!
View GitHub Profile
@tadasv
tadasv / orm.go
Last active February 14, 2022 19:19
Simple ORM for Golang
/*
This is an implementation of simple ORM that supports CRUD operations on single object, column mapping from struct tags.
example:
type Account struct {
orm.Model
UUID string
Name string
Email string
@pwenzel
pwenzel / require_all_helper.php
Created August 23, 2012 17:07
Recursively include all PHP files
<?php
/**
* Scan the api path, recursively including all PHP files
*
* @param string $dir
* @param int $depth (optional)
*/
protected function _require_all($dir, $depth=0) {
if ($depth > $this->max_scan_depth) {