Skip to content

Instantly share code, notes, and snippets.

@prestonvasquez
prestonvasquez / mongo_registry.go
Created November 19, 2024 20:27 — forked from SupaHam/mongo_registry.go
mongo-go-driver UUID decoder & encoder for Golang
package repository
import (
"fmt"
"reflect"
"github.com/google/uuid"
"go.mongodb.org/mongo-driver/v2/bson"
)
package repository
import (
"fmt"
"reflect"
"github.com/google/uuid"
"go.mongodb.org/mongo-driver/v2/bson"
)
package main
import (
"context"
"fmt"
"log"
"sort"
"time"
"go.mongodb.org/mongo-driver/v2/bson"
package main
import (
"context"
"fmt"
"log"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/mongo"
)
package main
import (
"context"
"log"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/mongo/options"
)
#include <iostream>
#include <type_traits>
using namespace std;
// Derived classes
class Human {
public:
static int getMove() {
// TODO: add logic
#include <iostream>
using namespace std;
// Base class
class Player {
public:
// pure virtual function providing interface framework.
virtual int getMove() = 0;
};
go test fuzz v1
int(-42)
string("hello")