Skip to content

Instantly share code, notes, and snippets.

View eduardohitek's full-sized avatar
🏠
Working from home

Eduardo Hitek eduardohitek

🏠
Working from home
View GitHub Profile
package main
import "log"
// CreateElement generate and organize the nested array elements
func CreateElement(elements ...interface{}) []interface{} {
return elements
}
func main() {
@eduardohitek
eduardohitek / main.go
Created September 2, 2023 12:19
Logs in mongodb with Go
package main
import (
"context"
"log"
"log/slog"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/event"
"go.mongodb.org/mongo-driver/mongo"
@eduardohitek
eduardohitek / send-kafka-go.go
Created July 4, 2024 19:29
send-kafka-go.go
package main
import (
"fmt"
"log"
"os"
"time"
"github.com/IBM/sarama"
)