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

[kubernetes/client-go] Go clients for talking to a kubernetes cluster.

Posted on March 3, 2023April 28, 2023 By nim No Comments on [kubernetes/client-go] Go clients for talking to a kubernetes cluster.
[kubernetes/client-go] Go clients for talking to a kubernetes cluster.

Nếu Sếp bảo bạn giờ anh muốn em code 1 script restart pod trên k8s khi nó bị freeze.Còn làm sao biết là pod đó bị freeze thì call vào 1 enpoint. Chà viêt Script hả ta. No No em code GO. Bạn có thể tham khảo Đây là code của anh trai: Code của…

Read More “[kubernetes/client-go] Go clients for talking to a kubernetes cluster.” »

Golang, Kubernetes

[aws-sdk-go] Integrate with AWS by golang

Posted on February 25, 2023 By nim No Comments on [aws-sdk-go] Integrate with AWS by golang
[aws-sdk-go] Integrate with AWS by golang

Hôm nay nghịch tý golang call vào awsở V2 còn nhiều compose chưa được phát triểnbài này mình test với S3 trên aws. Resolve: https://stackoverflow.com/questions/25027462/aws-s3-the-bucket-you-are-attempting-to-access-must-be-addressed-using-the-spec Và sau đây là code sample

Golang

[Golang] Looking filepath.Walk to return any file and children folder in the folder

Posted on February 24, 2023February 25, 2023 By nim No Comments on [Golang] Looking filepath.Walk to return any file and children folder in the folder
[Golang] Looking filepath.Walk to return any file and children folder in the folder

The filepath.Walk function is used to traverse a directory tree recursively, starting from a given directory path. It walks the directory tree and calls a given function once for each file or directory found, passing in information about that file or directory. The function signature of filepath.Walk is: where root is the starting directory path, and walkFn is the function to be called…

Read More “[Golang] Looking filepath.Walk to return any file and children folder in the folder” »

Golang

[Golang] Create multiple CRON functions by looping through a list

Posted on February 4, 2023 By nim No Comments on [Golang] Create multiple CRON functions by looping through a list
[Golang] Create multiple CRON functions by looping through a list

Gần dây mình có tình viết 1 scheduler bằng Golang.và mình định sử dụng gopkg.in/robfig/cron.v3 khi đó thì bạn sẽ thấy là dụ sài vòng for nhưng kết quả điều giống nhau. Nhưng mình mong muốn là như thế này: Vậy fix sao: https://stackoverflow.com/questions/57095167/how-do-i-create-multiple-cron-function-by-looping-through-a-list Problem in your code is equivalent to the one described here:…

Read More “[Golang] Create multiple CRON functions by looping through a list” »

Golang

[Goland/Echo Framework/For loop] Return the results twice when using the echo framework and for loop on Goland

Posted on February 3, 2023November 6, 2023 By nim No Comments on [Goland/Echo Framework/For loop] Return the results twice when using the echo framework and for loop on Goland
[Goland/Echo Framework/For loop] Return the results twice when using the echo framework and for loop on Goland

Lâu lâu coding lại golang thì gặp lỗi này. Mình chạy golang trên Goland. Mình sử dụng vòng for trong echo framework.thì kết quả trả về lúc nào cũng bị double. Run with elevated privileges. Bạn có thể lấy key Goland ở đây:https://3.jetbra.in/(Nếu bạn giàu thì mua key đi nè)

Golang

[Golang] Create Your Own CLI — With Golang

Posted on December 21, 2022January 7, 2024 By nim No Comments on [Golang] Create Your Own CLI — With Golang
[Golang] Create Your Own CLI — With Golang

Bạn muốn viết 1 tool command như bạn chỉ biết golang.Ahihi quá easy Look into example https://github.com/urfave/cli/blob/main/docs/v2/examples/greet.md trong phần import github.com/urfave/cli/v2 thì the urfave/cli package to create a command-line application. Tiếp đến là phần khai báo các thông tin của CLI thông qua &cli.App: Tiếp đến là phần thực thi application:app.Run(os.Args) Và đây là thành…

Read More “[Golang] Create Your Own CLI — With Golang” »

Golang

[go-git] returned a non-zero code: 1 when building docker

Posted on December 5, 2022 By nim No Comments on [go-git] returned a non-zero code: 1 when building docker
[go-git] returned a non-zero code: 1 when building docker

Mình đang gặp 1 problem với go-git trong build docker. Mình gặp vấn đề này trên github.com/go-git/go-git/v5 v5.5.0 Lúc này bạn cần edit go-git về version github.com/go-git/go-git/v5 v5.4.2 bằng command: Edit version go package https://stackoverflow.com/questions/24855081/how-do-i-import-a-specific-version-of-a-package-using-go-get

Golang

[Golang] Convert between Json and Struct in Golang

Posted on June 13, 2022 By nim No Comments on [Golang] Convert between Json and Struct in Golang
[Golang] Convert between Json and Struct in Golang

Khi sử dụng resty để sent POST (Restful API) thì nếu nhận về payload nhận về sẽ là chuổi json chuyển đổi json và struct trong golangNim tham khảo link nàyhttps://golangbyexample.com/struct-json-golang/ Bạn là để ý là mình sẽ chuẩn bị 1 struct là In4ConnectorTiếp đó mỉnh sử dụng json.Unmarshal([]byte(), ) để chuyển string resp.String() sang…

Read More “[Golang] Convert between Json and Struct in Golang” »

Golang

[Golang/string] Remove or Delete a few words or characters in a string through Golang.

Posted on June 12, 2022 By nim No Comments on [Golang/string] Remove or Delete a few words or characters in a string through Golang.
[Golang/string] Remove or Delete a few words or characters in a string through Golang.

Trong bài này mình có đang cần xóa bớt các kí tự trong 1 string Mình tìm được bài này:https://socketloop.com/tutorials/golang-remove-characters-from-string-example Lưu code lại lỡ trang web của họ bay màu References: https://golang.org/pkg/strings/#IndexRunehttps://golang.org/pkg/strings/#Maphttps://www.socketloop.com/tutorials/golang-remove-dashes-or-any-character-from-string

Golang

[Golang] Error obtaining VCS status: exit status 128

Posted on April 14, 2022May 11, 2022 By nim No Comments on [Golang] Error obtaining VCS status: exit status 128
[Golang] Error obtaining VCS status: exit status 128

Mới gần đây team mình bị lỗi như dươi https://github.com/golang/go/issues/51253 Nó sẽ bị lỗi trong quá trình build image! Vậy thì bây giờ bạn cần hạ version golang xuống 1.7.x https://go-review.googlesource.com/c/go/+/391354/

Golang

Posts pagination

Previous 1 … 3 4 5 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.