Skip to content

NimTechnology

Trình bày các công nghệ CLOUD một cách dễ hiểu.

  • Kubernetes & Container
    • Docker
    • Kubernetes
      • Gateway API
      • Ingress
      • Pod
    • Helm Chart
    • OAuth2 Proxy
    • Isito-EnvoyFilter
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Vault
    • Longhorn – Storage
    • VictoriaMetrics
    • MetalLB
    • Kong Gateway
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Argo Events
    • Spinnaker
    • Jenkins
    • Harbor
    • TeamCity
    • Git
      • Bitbucket
  • Coding
    • DevSecOps
    • Terraform
      • GCP – Google Cloud
      • AWS – Amazon Web Service
      • Azure Cloud
    • Golang
    • Laravel
    • Python
    • Jquery & JavaScript
    • Selenium
  • Log, Monitor & Tracing
    • DataDog
    • Prometheus
    • Grafana
    • ELK
      • Kibana
      • Logstash
  • BareMetal
    • NextCloud
  • Toggle search form

Category: Golang

[Golang] List the files in a directory with Go

Posted on January 19, 2024January 19, 2024 By nim No Comments on [Golang] List the files in a directory with Go
[Golang] List the files in a directory with Go

Copy from: https://freshman.tech/snippets/go/list-files-in-dir/ The Go standard library provides several packages for working with files and directories. This article examines some of the ways you can fetch a list of all the files in a directory using stdlib methods. Let’s consider four ways to retrieve a list of files in a directory with Go. They’re all…

Read More “[Golang] List the files in a directory with Go” »

Golang

[Golang] Approach Channel in Calling another function with Golang

Posted on January 18, 2024January 18, 2024 By nim No Comments on [Golang] Approach Channel in Calling another function with Golang
[Golang] Approach Channel in Calling another function with Golang

Bài toán toán là function A chạy 1 vòng For lấy ra từng giá trị nhỏ của mảng và send chúng đến function sử lý và nhận lại kết quả: Nếu mảng của bạn có vài ngàn giá trị nhỏ thì việc gởi và sử lý tuần tự rất là mất thời gian.nếu mỗi process…

Read More “[Golang] Approach Channel in Calling another function with Golang” »

Golang

Go exec command

Posted on January 17, 2024January 18, 2024 By nim No Comments on Go exec command
Go exec command

Copy from: https://zetcode.com/golang/exec-command/ Go exec command tutorial shows how to execute shell commands and programs in Golang. The Run function starts the specified command and waits for it to complete, while the Start starts the specified command but does not wait for it to complete; we need to use Wait with Start. Go os/exec The os/exec package runs external commands. It wraps os.StartProcess to make it…

Read More “Go exec command” »

Golang

[Golang] Generate the Binary Files on Multi Architecture by Github Action

Posted on January 15, 2024March 13, 2024 By nim No Comments on [Golang] Generate the Binary Files on Multi Architecture by Github Action
[Golang] Generate the Binary Files on Multi Architecture by Github Action

Trước đó mình đã có 1 bài hướng dẫn các bạn tạo cli tool cho riêng mình bằng Golang. Sau khi code xong chúng ta sẽ public cli.Nhưng chúng ta không thể build Binary trên từng hệ điều hành rồi mới push chúng lên release được. chúng ta sẽ dùng 1 lệnh và build chúng…

Read More “[Golang] Generate the Binary Files on Multi Architecture by Github Action” »

Golang

[Golang] In-Memory Cache or Local Cache with Golang.

Posted on January 1, 2024January 1, 2024 By nim No Comments on [Golang] In-Memory Cache or Local Cache with Golang.
[Golang] In-Memory Cache or Local Cache with Golang.

Here are some Go packages similar in functionality to go-cache: Coding To print each individual value stored under the myKey key in BigCache, you can split the retrieved concatenated string into its constituent parts. Since the values are concatenated with spaces as separators, you can use strings.Split to divide the string into separate values and…

Read More “[Golang] In-Memory Cache or Local Cache with Golang.” »

Golang

[Golang] Use Cache to consume messages in Kafka with GO

Posted on January 1, 2024January 1, 2024 By nim No Comments on [Golang] Use Cache to consume messages in Kafka with GO
[Golang] Use Cache to consume messages in Kafka with GO

To receive results in the main function from StartKafkaConsumer, you can use a Go channel. Channels are a powerful feature in Go for communication between goroutines. Here’s how you can modify your program: 1. Modify StartKafkaConsumer to Use Channels Update the StartKafkaConsumer function to send Kafka messages through a channel. You’ll also need to pass…

Read More “[Golang] Use Cache to consume messages in Kafka with GO” »

Golang

[Golang] Implement Job Queue inside GOlang.

Posted on December 31, 2023December 31, 2023 By nim No Comments on [Golang] Implement Job Queue inside GOlang.
[Golang] Implement Job Queue inside GOlang.

Bạn nên xem video này: Đầu tiên chúng ta cần tạo ra 1 interface to implement process Ở đây sẽ là interface bới vì chúng ta muốn linh hoạt trong các implement một job chứ không fix vào 1 case cụ thể nào cả. Tiếp theo chúng ta cần phải define ra worker. Tiếp theo…

Read More “[Golang] Implement Job Queue inside GOlang.” »

Golang

[Golang] Mastering File Handling in Go: Download, Extract, and Analyze ZIP Archives

Posted on December 28, 2023December 28, 2023 By nim No Comments on [Golang] Mastering File Handling in Go: Download, Extract, and Analyze ZIP Archives
[Golang] Mastering File Handling in Go: Download, Extract, and Analyze ZIP Archives

writing a Go program to download the file, extract its contents, and compute the required information (MD5, SHA1, SHA256 hashes, filename, and size) for each file in the ZIP archive. To check the information of the ZIP file itself (i.e., the hash values and size of the 2_Levels_Archive.zip file), you don’t need to extract the…

Read More “[Golang] Mastering File Handling in Go: Download, Extract, and Analyze ZIP Archives” »

Golang

How to code a tool to connect Kafka by Golang

Posted on December 27, 2023December 31, 2023 By nim No Comments on How to code a tool to connect Kafka by Golang
How to code a tool to connect Kafka by Golang

1) Overview Bạn cần viết 1 application để connect vào kafka bằng Golang. Chúng ta có 2 lựa chọn:https://github.com/confluentinc/confluent-kafka-gohttps://github.com/IBM/sarama Hãy tìm hiểu về sơ về cách thức hoạt động và ưu nhược điểm của 2 package trên. confluent-kafka-go Key Features: sarama Key Features: Comparison and Considerations Hoặc bạn có thể tham khảo link này:https://www.reddit.com/r/golang/comments/olrd34/confluentkafkago_or_shopifysarama/ Example…

Read More “How to code a tool to connect Kafka by Golang” »

Golang, Kafka

 [Goland] Install GCC Compiler On Windows OS

Posted on December 27, 2023December 27, 2023 By nim No Comments on  [Goland] Install GCC Compiler On Windows OS
 [Goland] Install GCC Compiler On Windows OS

1) Why install GCC when you code Golang? Nếu bạn sử dụng package: https://github.com/confluentinc/confluent-kafka-goMình chắc chắn các bạn sẽ cần cài gcc Ủa. Teo đang code Golang mà bay cài GCC chi? When using confluent-kafka-go, a Go client for Apache Kafka developed by Confluent, it’s often necessary to install GCC (GNU Compiler Collection). This requirement…

Read More “ [Goland] Install GCC Compiler On Windows OS” »

Golang

Posts pagination

Previous 1 2 3 … 6 Next
Tham Gia Group DevOps nhé!
Để Nim có nhiều động lực ra nhiều bài viết.
Để nhận được những thông báo mới nhất.

Recent Posts

  • [Rancher/EKS] Rancher from v2.12.x can not work on eks cluster. April 15, 2026
  • [Telegram/Openclaw] Configure openclaw bot in a Telegram group. March 31, 2026
  • Tutorial: Gateway API + Traefik + oauth2-proxy (Microsoft Entra ID) March 30, 2026
  • Full + incremental backup: When restoring, do deleted files come back? March 27, 2026
  • [K8S] Create long-lived kubeconfig on k8s March 23, 2026

Archives

  • April 2026
  • March 2026
  • February 2026
  • January 2026
  • December 2025
  • November 2025
  • October 2025
  • September 2025
  • August 2025
  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021

Categories

  • AI
    • OpenClaw
  • BareMetal
    • NextCloud
  • CI/CD
    • Argo Events
    • ArgoCD
    • ArgoWorkflows
    • Git
      • Bitbucket
    • Harbor
    • Jenkins
    • Spinnaker
    • TeamCity
  • Coding
    • DevSecOps
    • Golang
    • Jquery & JavaScript
    • Laravel
    • NextJS 14 & ReactJS & Type Script
    • Python
    • Selenium
    • Terraform
      • AWS – Amazon Web Service
      • Azure Cloud
      • GCP – Google Cloud
  • Kubernetes & Container
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Docker
    • Helm Chart
    • Isito-EnvoyFilter
    • Kong Gateway
    • Kubernetes
      • Gateway API
      • Ingress
      • Pod
    • Longhorn – Storage
    • MetalLB
    • OAuth2 Proxy
    • Vault
    • VictoriaMetrics
  • Log, Monitor & Tracing
    • DataDog
    • ELK
      • Kibana
      • Logstash
    • Fluent
    • Grafana
    • Prometheus
  • Uncategorized
  • Admin

Copyright © 2026 NimTechnology.