🧮 USERS:1 FEEDS:2 TWTS:866 ARCHIVED:69948 CACHE:2286 FOLLOWERS:14 FOLLOWING:14
🧮 USERS:1 FEEDS:2 TWTS:865 ARCHIVED:69931 CACHE:2280 FOLLOWERS:14 FOLLOWING:14
We tried minimalism with kids. ⌘ Read more
替代 zap,Go 語言官方實現的結構化日誌包
在 Go 1.21 中,引入了一個新的 log 包 – log/slog,這是一個強大的日誌記錄庫,提供了許多用於幫助開發人員更加有效地記錄、管理和理解日誌的工具。無論你是一個初級還是高級的 Go 開發人員,理解和掌控 go 的日誌系統是非常有用的。接下來,讓我們深入研究一下 Go 中的日誌行爲,並通過實例來詳細理解每個主要功能。安裝–在 Go 1.21 中,log/slog 是系統自帶的,無 ⌘ Read more
Mathieu Pasquet: slixmpp v1.8.5
Highlights- Moving away from self-hosted gitlab (mathieui)
- Fix connection to Snikket instances (pep., mathieui)
- Performance fix for XEP-0115 queries
- New documentation listing projects using slixmpp (genghis)
- Bugfix and improvements (nicoco, mostly)
- Gitlab migration: see the otherblogpost
- Fix connections to Snikket instances:
Snikket decided to forbid PLAIN
authentication, which is good but exposed … ⌘ Read more
🧮 USERS:1 FEEDS:2 TWTS:864 ARCHIVED:69917 CACHE:2269 FOLLOWERS:14 FOLLOWING:14
Wasm on Go
本篇內容,是對極客兔兔: Go WebAssembly (Wasm) 簡明教程 [1] 的實踐與記錄,主體內容來自這篇博客,推薦閱讀原文。 是否需要搭建 wasm 環境? WebAssembly 上手 [2]如果是 C/C++,需要藉助 emcc,將 C 和 C++ 代碼編譯到 WebAssembly 和 JavaScript。在 Mac 上,brew install emscripten然後 ⌘ Read more
🧮 USERS:1 FEEDS:2 TWTS:863 ARCHIVED:69914 CACHE:2280 FOLLOWERS:14 FOLLOWING:14
Docker Security Advisory: Multiple Vulnerabilities in runc, BuildKit, and Moby
Docker security advisory about multiple vulnerabilities in runc, BuildKit, and Moby: We will publish patched versions of runc, BuildKit, and Moby on January 31 and release an update for Docker Desktop on February 1 to address these vulnerabilities. Additionally, our latest Moby and BuildKit releases will include fixes for CVE-2024-23650 and CVE-2024-24557, discovered respectively by an … ⌘ Read more
Ignite Realtime Blog: XMPP Summit 26 & FOSDEM
On February 1st and 2nd, the 26th XMPP Summit will take place in Brussels. Immediately afterwards, the FOSDEM event will take place on the 3rd and 4th of February.
I’ll be attending both (although I won’t be present for the second day of FOSDEM). If you happen to be in Brussels, let me know! Maybe we can meet up!
1 post - 1 participant
[Read full topic](https://discourse.igniterealt … ⌘ Read more
Go Web 開發不得不說的請求路由
*1. 請求路由的概念請求路由的定義:請求路由是指將客戶端的請求與服務器上對應的處理程序匹配和映射的過程。它決定了不同的 URL 或 API 請求被映射到哪些處理函數。請求路由的作用:請求路由實現了請求與處理函數之間的解耦,使代碼更加模塊化。同時,它也使得 URL 和 API 更符合 RESTful 設計規範。請求路由還可以實現諸如負載均衡、緩存、日誌記錄、身份驗證等功能。2. net/http ⌘ Read more
🧮 USERS:1 FEEDS:2 TWTS:862 ARCHIVED:69910 CACHE:2289 FOLLOWERS:14 FOLLOWING:14
Ignite Realtime Blog: Non-SASL Authentication Openfire plugin 1.1.0 released!
We’ve just released version 1.1.0 of the Non-SASL Authentication plugin for Openfire! This release fixes a compatibility issue with Openfire 4.8.0.
The Non-SASL Authentication plugin provides an implementation for authentication with Jabber servers and services using the jabber:iq:auth namespace, as specified in XEP-0078: Non-SASL Authentication. … ⌘ Read more
Beta 1 of macOS Sonoma 14.4 Available for Testing
Apple has released the first beta version of macOS Sonoma 14.4 to users enrolled in the beta testing programs for Mac system software. The new MacOS beta arrives alongside new betas for WatchOS, and a few days after the first beta of iOS 17.4 debuted. No major new features are expected in macOS Sonoma 14.4, … Read More ⌘ Read more
🧮 USERS:1 FEEDS:2 TWTS:861 ARCHIVED:69900 CACHE:2293 FOLLOWERS:14 FOLLOWING:14
[47°09′30″S, 126°43′35″W] Reading: 1.17000 PPM
BlueSCSI Wi-Fi Desk Accessory 1.1 Released ⌘ Read more
🧮 USERS:1 FEEDS:2 TWTS:860 ARCHIVED:69897 CACHE:2298 FOLLOWERS:14 FOLLOWING:14
DFRobot Coin-Sized ESP32-C6 Board with RISC-V Core, Priced at $4.90
The Beetle ESP32-C6 is a compact and versatile IoT development board by DFRobot, designed for Arduino enthusiasts and developers looking to explore low-power IoT solutions. This tiny gizmo offers up to 16x I/Os and an array of communication protocols including Wi-Fi 6, Bluetooth 5, Zigbee 3.0, and Thread 1.3. This device utilizes the same Espressif […] ⌘ Read more
Sam Whited: Thoughts on a New Software Commons
I use various legal and economic terms of art in this post, but I am neither a
lawyer or an economist.
They should be read in the way a layperson might read them, not as a serious
legal or economic analysis or advice.
I’ve long held that software being open source1 is necessary, but not
sufficient.
Using copyright and contract law to enshrine the freedom to use your software
instead … ⌘ Read more
🧮 USERS:1 FEEDS:2 TWTS:859 ARCHIVED:69896 CACHE:2298 FOLLOWERS:14 FOLLOWING:14
🧮 USERS:1 FEEDS:2 TWTS:858 ARCHIVED:69891 CACHE:2300 FOLLOWERS:14 FOLLOWING:14
Beta 1 of iOS 17.4 & iPadOS 17.4 Available for Testing
Apple has released the first beta versions of iOS 17.4 and iPadOS 17.4 to users enrolled in the developer beta testing programs for iPhone and iPad system software. There are some significant changes for European users arriving in betas for iOS 17.4, including changes to the App Store, and adding the ability to install apps … [Read More](https://osxdaily.com/2024/01/26/beta-1-of-ios-17-4-ipados-17-4-available-for-testing/ … ⌘ Read more
Go 使用 cmux 實現網絡端口複用
cmux 的作用——– 一般情況下, 每個端口只能爲一個服務所用, 如果複用, 會報 “port is already in use”如果需要複用某個端口, 那麼可以使用 cmux 來實現 (其實大多數情況下必要性不大. 比如我就圖 8888 端口吉利, http/grpc 等服務都用這個端口)cmux[1] 全稱 Connection Mux, 是 Go 生態來複用端口的庫, 可 ⌘ Read more
🧮 USERS:1 FEEDS:2 TWTS:857 ARCHIVED:69876 CACHE:2288 FOLLOWERS:14 FOLLOWING:14
@prologic@twtxt.net Iridium is a really nice browser. +1 for that :)
Go 信號 - 守護進程開發爬坑指南
*一、信號 (signal) 處理信號是 Linux 系統下進程間通信的一種限制式異步通知機制。一個信號可以傳遞一個事件通知給一個進程, 代表一個異步事件。Go 語言內置了對信號的支持, 通過 os/signal 包可以實現 Go 程序對信號的處理。1.1 什麼是信號信號 (Signal) 是 Linux 系統下進程間通信的一種方式。當某個事件發生時, 內核會通知進程一個信號。進程接收到信號後, ⌘ Read more
Go 一文帶你喫透 HTTP 客戶端!
*1. HTTP 請求簡介HTTP(Hypertext Transfer Protocol) 是構建 web 應用通信的基石。HTTP 工作於客戶端 - 服務端架構上。HTTP 客戶端發起請求, 服務器接收請求並返回響應。HTTP 請求主要由請求行、請求頭、請求體組成請求行 GET /search?name=Golang HTTP/1.1請求頭部 Host: www.baidu ⌘ Read more
[47°09′15″S, 126°43′16″W] Raw reading: 0x65B1F8E1, offset +/-1
🧮 USERS:1 FEEDS:2 TWTS:856 ARCHIVED:69871 CACHE:2289 FOLLOWERS:14 FOLLOWING:14
[47°09′10″S, 126°43′09″W] Reading: 1.78 Sv
🧮 USERS:1 FEEDS:2 TWTS:855 ARCHIVED:69866 CACHE:2286 FOLLOWERS:14 FOLLOWING:14
[47°09′54″S, 126°43′09″W] Reading: 1.07000 PPM
[47°09′09″S, 126°43′06″W] Reading: 1.31 Sv
iOS 15.8.1 & iPadOS 15.8.1 Security Updates Released for Old iPhone, iPad, iPod Touch
Apple has released security updates to old model iPhone, iPad, and iPod touch devices running iOS 15 and iPadOS 15. Yes, you read that correctly and you do not need to check your calendar (or your eyes), iOS 15.8.1 and iPadOS 15.8.1 are new releases of system software for old hardware. iOS 15.8.1 and iPadOS … [Read More](https://osxdaily.com/2024/01/23/ios-15-8-1 … ⌘ Read more
golang 中如何使用 kafka
Kafka 是一種備受歡迎的流處理平臺,具備分佈式、可擴展、高性能和可靠的特點。在處理 Kafka 數據時,有多種最佳實踐可用來確保高效和可靠的處理。本文將介紹這些實踐方法,並展示如何使用 Sarama 來實現它們。Kafka 消費的最佳實踐取決於你的使用場景和需求,以下是一些建議:1 使用 Consumer Group: 在生產環境中,建議使用 Consumer Group,這樣可以確保多個消費 ⌘ Read more
🧮 USERS:1 FEEDS:2 TWTS:854 ARCHIVED:69854 CACHE:2286 FOLLOWERS:14 FOLLOWING:14
DietPi January 2024 news (version 9.0)
DietPi’s latest release, version 9.0, rolled out today, marks a significant update for the lightweight Linux OS, renowned for its efficiency on single-board computers. This release phases out support for the older Debian Buster version, introduces compatibility with the new 1.5 GB Orange Pi Zero 3, and brings several enhancements and bug fixes across the […] ⌘ Read more
🧮 USERS:1 FEEDS:2 TWTS:853 ARCHIVED:69849 CACHE:2287 FOLLOWERS:14 FOLLOWING:14
🧮 USERS:1 FEEDS:2 TWTS:852 ARCHIVED:69835 CACHE:2282 FOLLOWERS:14 FOLLOWING:14
[47°09′50″S, 126°43′40″W] Reading: 1.60 Sv
🧮 USERS:1 FEEDS:2 TWTS:851 ARCHIVED:69819 CACHE:2281 FOLLOWERS:14 FOLLOWING:14
Ignite Realtime Blog: HTTP File Upload plugin 1.4.0 released
The HTTP File Upload plugin is a plugin for Openfire that allow users to easily share files (such as pictures) in a chat
A new release is now available for this plugin: version 1.4.0.
This release introduces a couple of interesting security improvements:
- an additional guard has been added that should prevent scripts embedded in data to be executed without the recipient’s approval
- It is now possible to configure a viru … ⌘ Read more
Ignite Realtime Blog: Presence Service plugin v1.7.2 release
The Presence Service plugin is a plugin for Openfire. It provides a service that provides simple presence information over HTTP. It can be used to display an online status icon for a user or component on a web page or to poll for presence information from a web service.
A new release is now available for this plugin: version 1.7.2.
In this release, an incompatibility with the recently released Openfire 4.8.0 was fixed. Als … ⌘ Read more
原來可以這麼使用 Protobuf
*1. Protobuf 簡介1.1 Protobuf 是什麼Protocol Buffers (簡稱 Protobuf) 是 Google 公司開源的一種輕便高效的結構化數據存儲格式, 以及用於序列化和反序列化結構化數據的代碼生成器。它可以用於通訊協議和數據存儲等領域。Protobuf 是以 .proto 文件形式定義結構化數據的方式和格式。並且通過代碼生成器生成各平臺 (Java、C++、Py ⌘ Read more
🧮 USERS:1 FEEDS:2 TWTS:850 ARCHIVED:69811 CACHE:2290 FOLLOWERS:14 FOLLOWING:14
🧮 USERS:1 FEEDS:2 TWTS:849 ARCHIVED:69806 CACHE:2291 FOLLOWERS:14 FOLLOWING:14
Go 插件機制詳解:原理、設計與最佳實踐
*1. Go 語言插件基礎1.1 插件概述插件是一種動態加載的代碼單元, 它可以在程序運行期間被動態加載和掛接到主程序上, 從而擴展主程序的功能。Go 語言從 1.8 版本開始, 通過 plugin 包提供了對插件的初步支持。利用插件, 可以在不需要重新編譯主程序的情況下, 動態地擴展主程序的功能, 做到高內聚低耦合。1.2 插件的定義和結構從實現上看, Go 語言的插件就是一個獨立編譯的 dyn ⌘ Read more
🧮 USERS:1 FEEDS:2 TWTS:848 ARCHIVED:69796 CACHE:2309 FOLLOWERS:14 FOLLOWING:14
Go 1-18 泛型全面講解:一篇講清泛型的全部
序2022 年 3 月 15 日,爭議非常大但同時也備受期待的泛型終於伴隨着 Go1.18 發佈了。可是因爲 Go 對泛型的支持時間跨度太大,有非常多的以 “泛型” 爲關鍵字的文章都是在介紹 Go1.18 之前的舊泛型提案或者設計,而很多設計最終在 Go1.18 中被廢棄或發生了更改。並且很多介紹 Go1.18 泛型的文章 (包括官方的) 都過於簡單,並沒對 Go 的泛型做完整的介紹,也沒讓大家意 ⌘ Read more
Golang 實現程序優雅退出的方法有哪些?
在 Go 語言中,實現程序的優雅退出是一項重要的任務,特別是在涉及到 HTTP 服務器、gRPC 服務器、以及其他後臺工作的情況下。以下是一些常見的平滑關閉方法:1. HTTP Server 平滑關閉Go 1.8 及以上版本提供了 http.Server 結構的 Shutdown 方法,用於平滑關閉 HTTP 服務器。package mainimport ( ”context” ”ne ⌘ Read more
🧮 USERS:1 FEEDS:2 TWTS:847 ARCHIVED:69793 CACHE:2312 FOLLOWERS:14 FOLLOWING:14
🧮 USERS:1 FEEDS:2 TWTS:846 ARCHIVED:69788 CACHE:2341 FOLLOWERS:14 FOLLOWING:14
🧮 USERS:1 FEEDS:2 TWTS:845 ARCHIVED:69784 CACHE:2343 FOLLOWERS:14 FOLLOWING:14
On my blog: Free Culture Book Club — Space Rover, part 1 https://john.colagioia.net/blog/2024/01/13/space-rover-1.html #freeculture #bookclub
Rust Embedded Working Group Announces Embedded-HAL v1.0
The Rust Embedded Working Group has announced a significant milestone with the release of embedded-hal version 1.0, marking a new chapter in the Rust embedded ecosystem. This release, alongside companion crates like embedded-hal-bus, embedded-hal-async, and embedded-hal-nb, represents a culmination of efforts since 2020 to stabilize and refine the embedded-hal traits. Embedded-HAL is a Rust-based framework […] ⌘ Read more
🧮 USERS:1 FEEDS:2 TWTS:844 ARCHIVED:69775 CACHE:2342 FOLLOWERS:14 FOLLOWING:14
Bought some more fencing for the garden, need to make it a bit higher some places, so that our husky can spend more time there, a couple of places has been a bit flimsy, time to fix it :) If he really wanted - he could easily get over, but he just likes to stay in the garden, and does never mess with the fence (wire mesh fence, wooden poles in the ground). Also have a long chain as well (that’s as long as the garden) but he does not want to have that one one (and it’s under 1.5m of snow now). If he ever jumps over or digs himself out I’ll get one of long wires that goes overhead that I can attach one of those pulleys \ leash too, that’ll be better then a long chain.
Duo Display Series: Equipped with RP2040 and ESP32 Microcontrollers
SB-Components has recently introduced an innovative range of compact modules on Kickstarter, featuring the RP2040 and ESP32 S3 WROOM-1 microcontrollers. These devices are equipped with a 6-DoF IMU, interchangeable displays, and versatile options for storage and connectivity. The series showcases two primary models: the Dual Roundy and the Dual Squary. The Dual Roundy boasts a […] ⌘ Read more
🧮 USERS:1 FEEDS:2 TWTS:843 ARCHIVED:69768 CACHE:2344 FOLLOWERS:14 FOLLOWING:14
沒想到,Go 語言垃圾回收是這樣工作的!
*1. 垃圾回收概述1.1 什麼是垃圾回收垃圾回收 (Garbage Collection,GC) 是一種自動內存管理的機制, 用於自動釋放那些不再被程序使用的內存。它的主要思想是程序在申請內存時不需要釋放, 而是由垃圾回收器在程序運行的過程中找出那些不再使用的內存並回收它們。這與 C/C++ 語言中的手動內存管理形成對比, C/C++ 程序員需要自己跟蹤內存的分配和釋放。而 Go 語言中內存的分 ⌘ Read more
FireBeetle 2 Upgraded with RISC-V Based ESP32-C6 SoC Featuring Zigbee 3.0 and Thread 1.3 Connectivity
DFRobot has announced the launch of the updated FireBeetle 2, now incorporating the latest ESP32-C6 System-on-Chip from Espressif Systems. This enhanced development board integrates standard I/Os, includes comprehensive battery support, and offers advanced connectivity options with Zigbee 3.0 and Thread 1.3. Unlike the FireBeetle 2 (ESP32-S3) … ⌘ Read more
🧮 USERS:1 FEEDS:2 TWTS:842 ARCHIVED:69763 CACHE:2359 FOLLOWERS:14 FOLLOWING:14
Georg Lukas: Converse.js webchat for prosody-hosted chatrooms
The goal of this post is to make an easily accessible (anonymous)
webchat for any chatrooms hosted on a prosody XMPP
server, using the web client converse.js.
There are two use cases:
Have an easily accessible default support room for users having trouble with
the server or their accounts.Have a working “Join using browser” button on
[search.jabber.network … ⌘ Read more
Go 調用 C-C– 函數全攻略
*一、Go 語言調用 C/C++ 函數cgo 基礎及工作原理Go 語言通過 cgo 和 C 語言的 ABI(Application Binary Interface) 進行交互。cgo 會生成相應的 C 代碼, 與 Go 代碼一起編譯成可執行文件或動態庫。cgo 的工作流程主要分爲 3 步:(1) 預處理: 將 Go 源碼中的 C 代碼塊提取出來, 生成 .c 和 .h 文件(2) 編譯: 調用 ⌘ Read more
🧮 USERS:1 FEEDS:2 TWTS:841 ARCHIVED:69752 CACHE:2361 FOLLOWERS:14 FOLLOWING:14
Go 運行時的併發原語
這篇文章我們來了解一下隱藏在 Go 運行時中的一些併發原語, 因爲運行時是底座和包循環依賴等原因,運行時中很少使用標準庫中的併發原語,它有自己的併發原語。mutex在 runtime/runtime2.go[1] 定義了一個互斥鎖,它的定義如下:type mutex struct { lockRankStruct key uintptr}它可是運行時中的大紅人了,在很多數據結構中都被廣泛的使用,凡 ⌘ Read more
🧮 USERS:1 FEEDS:2 TWTS:840 ARCHIVED:69731 CACHE:2356 FOLLOWERS:14 FOLLOWING:14
Affordable $12.99 ESP32-S3 Gizmo with Compact USB Flash Drive Form-Factor
The Waveshare ESP32-S3 GEEK, designed as a compact and versatile embedded device, caters to both developers and hobbyists with its USB Flash drive form factor. Enhancing its functionality, this innovative gadget features a small yet interactive 1.14-inch LCD display, adding a visual component to its array of capabilities. At its core, the ESP32-S3 GEEK Board […] ⌘ Read more
一個例子,給你講透典型的 Go 併發控制
Go 中可以使用一個go關鍵字讓程序異步執行一個比較常見的場景:逐個異步調用多個函數,或者循環中異步調用func main() { go do1() go do2() go do3()}// 或者func main() { for i := range []int{1,2,3}{ go do(i) }}如果瞭解 Go 併發機制,就知道main在其他 goroutine 運行完成之前就已經結束了, ⌘ Read more
掌握 go test 命令,寫出可信賴的代碼
*1. test 命令概述在開發過程中,測試是確保代碼質量和穩定性的關鍵步驟。通過測試,可及早發現潛在的問題,確保代碼的正確性和可維護性。Go 語言提供了強大的測試工具,其中 go test 命令是一個不可或缺的利器。1.1 單元測試單元測試是驗證代碼中最小可測試單元的過程。在 Go 中,單元測試通常位於與被測試代碼相同的包中,以 test.go 結尾的文件中。go test 會執行這些文件中的測 ⌘ Read more
🧮 USERS:1 FEEDS:2 TWTS:839 ARCHIVED:69718 CACHE:2353 FOLLOWERS:14 FOLLOWING:14
[47°09′00″S, 126°43′33″W] Raw reading: 0x659A5A01, offset +/-1
🧮 USERS:1 FEEDS:2 TWTS:838 ARCHIVED:69711 CACHE:2351 FOLLOWERS:14 FOLLOWING:14
🧮 USERS:1 FEEDS:2 TWTS:837 ARCHIVED:69697 CACHE:2349 FOLLOWERS:14 FOLLOWING:14
假如沒有 go install,編譯會多痛苦?
*1. go install 命令簡介go install 命令是 Go 語言的標準命令, 用於編譯和安裝 Go 語言程序。1.1 命令作用及基本原理go install 命令的主要作用是編譯和安裝 Go 語言的可執行文件或庫文件。它的基本原理是: 1. 按照包依賴關係編譯傳遞進來的 main 包及其所有依賴的包 2. 鏈接必要的包生成可執行文件 3. 將生成的可執行文件拷貝到 ⌘ Read more
🧮 USERS:1 FEEDS:2 TWTS:836 ARCHIVED:69681 CACHE:2340 FOLLOWERS:14 FOLLOWING:14
[47°09′22″S, 126°43′55″W] Reading: 1.97 Sv
[47°09′33″S, 126°43′12″W] Reading: 1.85000 PPM
Build 實戰指南:優雅編譯,高效開發
*1. Go Build 命令介紹1.1 基本語法格式Go 語言的 go build 命令用於編譯一個或多個 Go 源代碼文件,生成可執行文件或包。基本語法格式如下go build [標誌] [包名] 標誌:用於指定編譯時的選項和參數。 包名:可選,指定要編譯的包的路徑。如果省略包名,將編譯當前目錄下的所有 Go 源代碼文件。 go build 命令的工作原理包括以下步驟: 1. 分 ⌘ Read more
go run 命令核心技術詳解
*1. go run 命令簡介在 Go 語言開發中,go run 命令是一個非常常見且便捷的工具,它用於編譯並直接運行 Go 語言源代碼文件,而不需要生成可執行文件。本文將深入介紹 go run 的語法、常見用法實例、編譯命令行選項、注意事項,以及與 go build、go install 的區別和常見用途。2. go run 語法 go run 命令的基本語法爲:go run [文件名.go] ⌘ Read more
🧮 USERS:1 FEEDS:2 TWTS:835 ARCHIVED:69661 CACHE:2328 FOLLOWERS:14 FOLLOWING:14
🧮 USERS:1 FEEDS:2 TWTS:834 ARCHIVED:69649 CACHE:2319 FOLLOWERS:14 FOLLOWING:14
Go 測試的 20 個實用建議
2023 年 11 月初,Go 語言技術負責人 Russ Cox 在 GopherCon Australia 2023[1] 大會上進行了題爲 “Go Testing By Example”[2] 的演講:12 月初 Russ Cox 重新錄製了該演講內容的視頻,並在個人網站 [3] 上放了出來。這個演講視頻是關於如何編寫好的 Go 測試的,Russ Cox 介紹了 20 個實用建議,非常值得 G ⌘ Read more
go clean 命令 完全解析
*1. go clean 命令介紹命令作用和使用場景在 Go 語言開發中,go clean 命令是一個強大的工具,用於清除與 Go 構建相關的文件和目錄。它通常在項目維護、優化和 CI/CD 任務中發揮重要作用。使用場景包括但不限於: 在提交代碼前,清理本地構建產物,確保提交的是源代碼而非編譯文件。 在項目重構或遷移時,清理舊有構建產物,避免與新的代碼混淆。 在 CI/CD 流程中, ⌘ Read more
🧮 USERS:1 FEEDS:2 TWTS:833 ARCHIVED:69635 CACHE:2313 FOLLOWERS:14 FOLLOWING:14
Anything you do, do it in love. 1 Kor 16,14
🧮 USERS:1 FEEDS:2 TWTS:832 ARCHIVED:69610 CACHE:2296 FOLLOWERS:14 FOLLOWING:14
🧮 USERS:1 FEEDS:2 TWTS:831 ARCHIVED:69593 CACHE:2327 FOLLOWERS:14 FOLLOWING:14
[47°09′02″S, 126°43′19″W] Reading: 1.32000 PPM
🧮 USERS:1 FEEDS:2 TWTS:830 ARCHIVED:69471 CACHE:2326 FOLLOWERS:14 FOLLOWING:14
Go 配置文件大揭祕:INI 文件讀寫實戰詳解
*1. INI 文件簡介INI(Initialization)文件是一種簡單、文本文件格式,常用於配置文件。它由多個節(section)組成,每個節包含多個鍵值對。鍵值對的格式爲 key=value,節的格式爲 [section]。簡單示例如下:// 示例INI文件[database]host = localhostport = 3306username = userpassword = sec ⌘ Read more
🧮 USERS:1 FEEDS:2 TWTS:829 ARCHIVED:69292 CACHE:2339 FOLLOWERS:14 FOLLOWING:14
🧮 USERS:1 FEEDS:2 TWTS:828 ARCHIVED:69285 CACHE:2336 FOLLOWERS:14 FOLLOWING:14
🧮 USERS:1 FEEDS:2 TWTS:827 ARCHIVED:69267 CACHE:2334 FOLLOWERS:14 FOLLOWING:14
🧮 USERS:1 FEEDS:2 TWTS:826 ARCHIVED:69257 CACHE:2326 FOLLOWERS:14 FOLLOWING:14
tar 歸檔文件處理操作指南
*1. tar 文件的概述打包和壓縮多個文件在文件處理中,經常需要將多個文件打包成一個歸檔文件以便傳輸或存儲。tar 文件就是一種常見的歸檔文件格式,它能夠將多個文件和文件夾組織成一個單一的文件。結構簡單,跨平臺特性好Tar 文件採用簡單的文件組織結構,這種結構使得 tar 文件在不同操作系統之間具有很好的兼容性。Go 語言通過標準庫內置了對 tar 文件的支持,使得在 Go 中處理 tar 文件 ⌘ Read more
基於 Go-Kit 的 Golang 整潔架構實踐
如何用 Golang 實現簡潔架構?本文介紹了基於 Go-Kit 實現簡潔架構的嘗試,通過示例介紹了簡潔架構的具體實現。原文: Why is Go-Kit Perfect For Clean Architecture in Golang?[1]簡介Go 是整潔架構 (Clean Architecture) 的完美選擇。整潔架構本身只是一種方法,並沒有告訴我們如何構建源代碼,在嘗試用新語言實現時 ⌘ Read more
基於 FX 構建大型 Golang 應用
Uber 開源的 FX 可以幫助 Go 應用解耦依賴,實現更好的代碼複用。原文: How to build large Golang applications using FX[1] 構建複雜的 Go 應用程序可能會引入很多耦合Golang 是一種流行編程語言,功能強大,但人們還是會發現在處理依賴關係的同時組織大型代碼庫很複雜。Go 開發人員有時必須將依賴項的引用傳遞給其他人,從而造成重用代碼 ⌘ Read more