Skip to content

Instantly share code, notes, and snippets.

View onekung's full-sized avatar
🎯
Focusing

Thanongsuk Suyachai onekung

🎯
Focusing
  • Cnx
View GitHub Profile
@ayoubzulfiqar
ayoubzulfiqar / folder_structure.md
Created September 5, 2023 06:12
The Folder Structure for Every Golang Project

Go - The Ultimate Folder Structure

Organizing your Go (Golang) project's folder structure can help improve code readability, maintainability, and scalability. While there is no one-size-fits-all structure, here's a common folder structure for a Go project:

project-root/
    ├── cmd/
    │   ├── your-app-name/
    │   │   ├── main.go         # Application entry point
    │   │   └── ...             # Other application-specific files
@avoidik
avoidik / README.md
Last active October 14, 2025 02:25
Repack APK, make it debuggable
@ometa
ometa / socks5_proxy.go
Created February 25, 2020 16:05
Golang HTTP Client using SOCKS5 proxy and DialContext
// Golang example that creates an http client that leverages a SOCKS5 proxy and a DialContext
func NewClientFromEnv() (*http.Client, error) {
proxyHost := os.Getenv("PROXY_HOST")
baseDialer := &net.Dialer{
Timeout: 30 * time.Second,
KeepAlive: 30 * time.Second,
}
var dialContext DialContext
@atyachin
atyachin / android-emulator-as-system-service.txt
Created August 14, 2018 19:42
Android Emulator as a system service (systemd)
---------------------------------------------
/etc/systemd/system/android-emulator.service:
---------------------------------------------
[Unit]
Description=Android Emulator
After=network.target
[Service]
Type=simple
Environment=SHELL=/bin/bash
@teknoraver
teknoraver / unixhttpc.go
Last active November 26, 2025 20:43
HTTP over Unix domain sockets in golang
package main
import (
"context"
"flag"
"fmt"
"io"
"net"
"net/http"
"os"