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
      • 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

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

[Golang/Protocol Buffers] Binarilize data by Proto Buf

Posted on December 5, 2023December 5, 2023 By nim No Comments on [Golang/Protocol Buffers] Binarilize data by Proto Buf
[Golang/Protocol Buffers] Binarilize data by Proto Buf

Hiện tại thì mình thấy 1 số product họ sẽ endcode Json Data sang Binary Data xong gửi đi,và họ dụng proto buf để support cho việc endcode. 1) Setup gRPC + Golang environment. Đầu tiên bạn cần setup môi trường: Dưới này là slide: https://docs.google.com/presentation/d/19zCPlujW2NIvUzG5NZFKqCIJmfyINoTasNtpsFSiQKo/edit#slide=id.p 2) Coding 2.1) Create proto file. mình tạo file…

Read More “[Golang/Protocol Buffers] Binarilize data by Proto Buf” »

Golang

[Golang] The declarations are very helpful in Golang

Posted on November 22, 2023 By nim No Comments on [Golang] The declarations are very helpful in Golang
[Golang] The declarations are very helpful in Golang

1) Short if in Golang. If rút gọn trong Golang: Đây là cách rút gọn.

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

  • [AWS/EKS] Cache Docker image to accelerate EKS container deployment. July 10, 2025
  • [Laravel] Laravel Helpful June 26, 2025
  • [VScode] Hướng dẫn điều chỉnh font cho terminal June 20, 2025
  • [WordPress] Hướng dấn gửi mail trên WordPress thông qua gmail. June 15, 2025
  • [Bitbucket] Git Clone/Pull/Push with Bitbucket through API Token. June 12, 2025

Archives

  • 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

  • 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
      • Ingress
      • Pod
    • Longhorn – Storage
    • MetalLB
    • OAuth2 Proxy
    • Vault
    • VictoriaMetrics
  • Log, Monitor & Tracing
    • DataDog
    • ELK
      • Kibana
      • Logstash
    • Fluent
    • Grafana
    • Prometheus
  • Uncategorized
  • Admin

Copyright © 2025 NimTechnology.