Tag

Cobra

1 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Jun 11, 2025 · Backend Development

Master Go CLI Development: Build Powerful Command-Line Tools with Cobra

This comprehensive Go tutorial walks you through installing Cobra, initializing a project, creating basic and advanced commands with flags, subcommands, configuration, colored and table output, building a Todo CLI with persistence, and cross‑platform compilation and automated release, empowering you to craft professional command‑line tools.

Backend DevelopmentCLICobra
0 likes · 9 min read
Master Go CLI Development: Build Powerful Command-Line Tools with Cobra
Baidu Geek Talk
Baidu Geek Talk
Apr 7, 2025 · Artificial Intelligence

COBRA: Unified Generative Recommendations with Cascaded Sparse-Dense Representations

COBRA, Baidu’s new generative retrieval framework, unifies sparse ID generation and dense vector encoding through a cascaded architecture that first predicts hierarchical IDs then refines them into dense representations, achieving state‑of‑the‑art recall, NDCG and conversion gains across public benchmarks and large‑scale advertising production.

AICobragenerative recommendation
0 likes · 13 min read
COBRA: Unified Generative Recommendations with Cascaded Sparse-Dense Representations
FunTester
FunTester
Aug 8, 2024 · Backend Development

Introduction to Cobra and Tutorial for Building CLI Applications in Go

This article introduces the Go Cobra library, outlines its key features such as multi‑command structures, flag handling, auto‑generated help and markdown docs, and provides step‑by‑step code examples for creating, configuring, and extending CLI applications with flags, positional arguments, persistent flags, and subcommands.

CLICobraGo
0 likes · 13 min read
Introduction to Cobra and Tutorial for Building CLI Applications in Go
DevOps Cloud Academy
DevOps Cloud Academy
Dec 30, 2020 · Backend Development

Building a CLI Application in Go with Cobra: A Step‑by‑Step Tutorial

This tutorial explains how to create a command‑line interface (CLI) application in Go using the Cobra library, covering project initialization, command and flag definitions, configuration handling with Viper, and extending the tool with sub‑commands for integer, floating‑point, and even‑number calculations.

CLICobraGo
0 likes · 14 min read
Building a CLI Application in Go with Cobra: A Step‑by‑Step Tutorial