I. Basic Knowledge
1. Basic Data Types
- Value Types:
|
|
- Reference Types (Pointer Types):
2. Encoding & Strings
Go’s default encoding is UTF-8.
|
|
Go’s default encoding is UTF-8.
Manual installation is straightforward—just prepare the YAML configuration in advance. The complete CICD resource file jenkins-install.yaml is as follows:
|
|
Apply the Jenkins installation:
While debugging code in GoLand recently, I kept encountering the following error:
|
|
The issue essentially means that the installed version of Delve is too old and incompatible with the current Go version.
To resolve this, update Delve. Since I’m using brew for installation, and the official documentation doesn’t provide detailed instructions for brew, we’ll install it directly.
If you run a website or personal blog, you need to keep track of your SSL certificate expiration every year. Recently, the SSL certificate for wnote.com is also approaching its expiry.
Obtaining an SSL certificate enables HTTPS access for your site. There are both free and paid options available. Major domestic cloud providers like Alibaba Cloud, Tencent Cloud, and UCloud offer free SSL certificate services, typically valid for one year and requiring manual renewal. If your audience is primarily overseas, consider using Cloudflare’s CDN with built-in free SSL protection.
mdBook is a command-line tool written in Rust for creating books using Markdown. It’s ideal for crafting product or API documentation, tutorials, course materials, or any content requiring a clean, navigable, and customizable presentation. Functionally similar to GitBook, its greatest advantage lies in speed.
Since mdBook is developed in Rust, you need to install Rust first.
The ongoing COVID-19 pandemic has repeatedly disrupted daily life and work. Over the past half year, I’ve experienced a lot—family members fell seriously ill, my grandmother passed away, and there were numerous personal matters to handle, which led me to pause blogging for six months.
Amid economic downturns, many industries have begun layoffs and business scaling back. Taking advantage of recent free time, I’m summarizing my past experience with CDN services.
Recently, two recurring issues have arisen in our business operations using the Kubernetes cluster. Here’s a record of the solutions:
Solution for the first issue:
By default, Nginx limits upload size to 1M. To resolve this, add the following configuration in the http, server, or location blocks of the Nginx config:
Note: Kubernetes clusters created via the Alibaba Cloud Container Service console automatically deploy an Nginx Ingress Controller during initialization, which is default-mounted to a public SLB instance.
In the Alibaba Cloud console, create an internal SLB and bind it to your VPC.
|
|
Apply the service resource: