Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Marlik Almighty MarlikAlmighty

🏠
Working from home
Block or report user

Report or block MarlikAlmighty

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cuixin
cuixin / json_to_map.go
Created Oct 25, 2017
json to map[string]interface{} example in golang
View json_to_map.go
package main
import (
"encoding/json"
"fmt"
)
func dumpMap(space string, m map[string]interface{}) {
for k, v := range m {
if mv, ok := v.(map[string]interface{}); ok {
@Xeoncross
Xeoncross / mail.go
Last active Jun 28, 2019
Simple SMTP mail sender in golang that can send email directly to anyone. Super basic, but great for sending notice emails. Upgrades to STARTTLS if it can.
View mail.go
package main
import (
"encoding/base64"
"fmt"
"log"
"net"
"net/mail"
"net/smtp"
"strings"
You can’t perform that action at this time.