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
    • Helm Chart
    • Isito-EnvoyFilter
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Vault
    • Longhorn – Storage
    • VictoriaMetrics
    • MetalLB
    • Kong Gateway
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Spinnaker
    • Jenkins
    • Harbor
    • TeamCity
    • Git
      • Bitbucket
  • Coding
    • Terraform
      • GCP – Google Cloud
      • AWS – Amazon Web Service
    • Golang
    • Laravel
    • Python
    • Jquery & JavaScript
    • Selenium
  • Log & Monitor
    • 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, 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, 2023February 3, 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.

Golang

[Golang] Create Your Own CLI — With Golang

Posted on December 21, 2022December 21, 2022 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 https://itnext.io/how-to-create-your-own-cli-with-golang-3c50727ac608

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 navigation

1 2 3 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

  • Experiences for IP Addresses Shortage on EKS Clusters March 29, 2023
  • [Talisman] Discover the sensitive information in your code. March 28, 2023
  • [Prometheus/Grafana] Install Prometheus and Grafana on ubuntu. March 27, 2023
  • [Kong Gateway] WebSocket connection failed March 26, 2023
  • [Nextcloud] Can’t download files to have a size bigger than 2Gi on NextCloud – RaspBerry March 24, 2023

Archives

  • 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
    • ArgoCD
    • ArgoWorkflows
    • Git
      • Bitbucket
    • Harbor
    • Jenkins
    • Spinnaker
    • TeamCity
  • Coding
    • Golang
    • Jquery & JavaScript
    • Laravel
    • Python
    • Selenium
    • Terraform
      • AWS – Amazon Web Service
      • GCP – Google Cloud
  • Kubernetes & Container
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Docker
    • Helm Chart
    • Isito-EnvoyFilter
    • Kong Gateway
    • Kubernetes
      • Ingress
    • Longhorn – Storage
    • MetalLB
    • Vault
    • VictoriaMetrics
  • Log & Monitor
    • DataDog
    • ELK
      • Kibana
      • Logstash
    • Grafana
    • Prometheus
  • Uncategorized
  • Admin

Copyright © 2023 NimTechnology.