Skip to content

Instantly share code, notes, and snippets.

View goodylili's full-sized avatar
🎯
Focusing

Ukeje Goodness goodylili

🎯
Focusing
View GitHub Profile
@goodylili
goodylili / mux.go
Created February 16, 2023 05:53
CRUD RESTful API in Go with the Gorilla Mux Package - Article for RedGate's Simple Talk Blog
package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"github.com/gorilla/mux"
"gorm.io/driver/sqlite"
@goodylili
goodylili / gsod.md
Last active February 25, 2023 08:36
GSoD Application HTML

Ukeje Goodness C | LinkedIn Github Portfolio Resume Main Tech Blog Linktree Twitter | About Me Hey there, I am Ukeje Goodness, an opensource enthusiast, backend developer, and technical writer focused on Python, Golang, and Rust while writing documentation for APIs, CLI apps, and other projects. I have over 3 years of experience with technical writing. My goal is to bring clarity to your technical projects.

@goodylili
goodylili / nnenna.py
Created February 5, 2023 07:19
a python file that converts audio to text using the speech recognition
import speech_recognition as sp_recog
from time import sleep
def capture_audio():
recog = sp_recog.Recognizer()
audio_file = sp_recog.AudioFile('AudioFile.wav')
with audio_file as source:
recog.pause_threshold = 1
@goodylili
goodylili / transact.go
Last active November 13, 2022 10:35
Database transactions in Go
package main
import (
"context"
"database/sql"
_ "github.com/mattn/go-sqlite3"
"log"
)
func main() {
@goodylili
goodylili / controller.go
Created November 8, 2022 11:46
Updates to LogRocket's Gin Gonic tutorial article
package controllers
import (
"Go-Tutorials/models"
"github.com/gin-gonic/gin"
"net/http"
)
type CreateBookInput struct {
Title string `json:"title" binding:"required"`
package main
import (
"encoding/json"
"github.com/go-chi/chi"
"github.com/go-chi/chi/middleware"
"log"
"net/http"
)
package main
import (
"fmt"
"gorm.io/driver/postgres"
"gorm.io/gorm"
"log"
"os"
)
@goodylili
goodylili / gin.go
Last active January 18, 2024 09:24
CRUD API in Go using the Gin FrameWork - Article for Earthly Technologies
package main
import (
"github.com/gin-gonic/gin"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
"log"
"net/http"
)
@goodylili
goodylili / PushaG.sh
Last active June 8, 2023 13:39
Helper file for pushing code to github with a commit message input
git add .
echo -n "🔊 What's the commit message 👉 "
read response
git commit -m "$response"
git push origin main
@goodylili
goodylili / jwt.go
Created July 24, 2022 15:33
JWT tutorial in Go using the golang-jwt package
package main
import (
"encoding/json"
"fmt"
"github.com/golang-jwt/jwt"
"log"
"net/http"
"time"
)