[Golang] Return Error in Golang
Bình thường chúng ta có thể return error như sau: Next, you’ll adjust the error handling portion. If res.IsError() evaluates to true, instead of logging the error and continuing, you’ll return an error:
Trình bày các công nghệ CLOUD một cách dễ hiểu.
Bình thường chúng ta có thể return error như sau: Next, you’ll adjust the error handling portion. If res.IsError() evaluates to true, instead of logging the error and continuing, you’ll return an error:
Nguồn: https://blog.bytebytego.com/i/137744340/explaining-popular-network-protocols-in-diagram Network protocols are standard methods of transferring data between two computers in a network. HTTP (HyperText Transfer Protocol)HTTP là một giao thức để lấy các tài nguyên như tài liệu HTML. Đây là nền tảng của bất kỳ sự trao đổi dữ liệu nào trên Web và đó là một giao thức client-server….
Read More “Explaining 8 Popular Network Protocols in 1 Diagram” »
Mình ví dụ raw data của trang này.Bạn thấy 1 tin sẽ là nhiều <div> trong <ul>==> Mục tiêu của mình là đến <ul> nghỉ 1 nhịp và Loop trong <div> để lây content của từng post.
Deploying to Kubernetes We offer a Helm chart to deploy these Docker images to Kubernetes. Read more details at the Helm readme. dưới dây là command helm để install selenium trên k8s Và đây là hình ảnh deploy selenium trên argocd Bạn truy cập vào selenium thông qua host mà bạn đã cấu hìnhhttp://<domain>/ui#/sessionsuser: adminpass: admin…
Read More “[Selelium] Install selelium on k8s and live demo” »
Được bạn HungTP-Play giới thiệu! https://github.com/loov/goda Goda is a Go dependency analysis toolkit. It contains tools to figure out what your program is using. Note: the exact syntax of the command line arguments has not yet been finalized. So expect some changes to it.
Certainly! Using tools like find on Unix-based systems can be a more efficient way to list files, especially for very large directories. Here’s a guide on how to integrate the find command with a Go program: Step-by-Step Guide: Example: Here’s a simple Go program that uses the find command to list all files in a…
Read More “[Golang] List large files in the folder quickly on Golang” »
Thấy bài này hay nên mình lưu lại:https://itnext.io/terraform-building-eks-part-3-karpenter-installation-124b4ced729f
Nếu anh em đã có provison eks windows trước đó thì anh có thể thấy 2 thành phần: vpc-admission-webhook and vpc-resource-controller trong eks cluster của anh em. Nhưng ở các version mới của eks từ 1.23 + thì aws ko còn sử dụng chúng nữahttps://docs.aws.amazon.com/eks/latest/userguide/windows-support.html#enable-windows-support Và chúng ta cần remove vpc-admission-webhook and vpc-resource-controller ra khỏi cluster nếu bạn đang…
Read More “[EKS] Adjusting things to migrate EKS legacy to new versions.” »
Look into Mutation testing. Mutation testing is a type of software testing where certain statements in the source code are changed (or “mutated”) to determine if the test cases can detect the changes. The idea is to ensure that the test suite is robust and can catch defects in the code. Here’s a basic overview…