Skip to content

Instantly share code, notes, and snippets.

View DecodeWorms's full-sized avatar

Musa Abdulhameed DecodeWorms

View GitHub Profile
func TestUserVerifyUserAccount(t *testing.T) {
t.Parallel()
var initCtx = &gin.Context{}
//logger := log.WithFields(map[string]interface{}{})
reqId := generator.GenerateRandomString(20)
initCtx.Set(utils.RequestID, reqId)
ctrl := gomock.NewController(t)
defer ctrl.Finish()
@DecodeWorms
DecodeWorms / enum.go
Created March 11, 2022 08:02 — forked from lummie/enum.go
Golang Enum pattern that can be serialized to json
package enum_example
import (
"bytes"
"encoding/json"
)
// TaskState represents the state of task, moving through Created, Running then Finished or Errorred
type TaskState int
@DecodeWorms
DecodeWorms / blogger.php
Created April 27, 2019 21:25
the blogger description
<?php
require_once"databaseConnector.php";
require_once"custom.php";
//the bootsrap design below is for heading
echo<<<___END
<!DOCTYPE html>
<html>
<head>
<title></title>