Building a Network Command Line Interface Tool In Go

  Рет қаралды 40,595

TutorialEdge

TutorialEdge

6 жыл бұрын

👨‍💻 For the price of a ☕ every month, sign up and gain access to a growing list of premium courses on my site - tutorialedge.net/pricing/ 👩‍💻
● SUBSCRIBE to see more of my Videos & hit that LIKE button to support the channel!
Hello fellow coders! In this tutorial, we are going to be building a really simple command line interface, or CLI for short, which allows us to query various things about a website.
We'll be using the github.com/urfave/cli package in order to make this work and the full code for this tutorial can be found here: github.com/TutorialEdge/Go/tr...
If you have any comments, suggestions or questions then please let me know down below!
Text Tutorial - tutorialedge.net/golang/build...
Project Layout - github.com/golang-standards/p...
‎● My Twitter ► ⁦‪ / elliot_f
‎● My Website ► tutorialedge.net

Пікірлер: 25
@santhoshmathavank3800
@santhoshmathavank3800 4 жыл бұрын
Peoples watching this video in 2020 check the CLI package version you are importing because some of the functions has been changed. The package used in this tutorial is CLIv1 and currently CLIv2 is released.
@Tutorialedge
@Tutorialedge 4 жыл бұрын
Thanks for highlighting this - I will be doing a newer video series on this in the coming weeks!
@Luix
@Luix 5 жыл бұрын
I was searching for a cobra tutorial but I will stay with this library
@akilansubramanian4532
@akilansubramanian4532 4 жыл бұрын
Thanks for your time 🙂...Going to write my first Go cli application 👍
@colinmsmall
@colinmsmall 4 жыл бұрын
Thanks for this. I'd love to see more like this.
@imxron
@imxron 4 жыл бұрын
Not sure if the project got updated, but I had to deference app.Commands: ```app.Commands = []*cli.Command{...}``` or it would not compile. I also had to reference the StringFlag struct: ```&cli.StringFlag```. Maybe I'm doing something wrong?
@UlissesOliva
@UlissesOliva 3 жыл бұрын
Amazing!
@dhruvprajapati7558
@dhruvprajapati7558 4 жыл бұрын
how to create flag in golang that run pycharm, visual studio code, or any other application.
@john_rambo_27098
@john_rambo_27098 6 жыл бұрын
Excellent presentation but curious why didn't you use range to iterate over the slices returned after making network calls!
@Tutorialedge
@Tutorialedge 6 жыл бұрын
Thank you :) and good point, I could have shortened that a bit! Either way works but range is certainly a nicer solution.
@NathanGrass
@NathanGrass 4 жыл бұрын
Jumped to the comments to find this comment!
@silviak5532
@silviak5532 4 жыл бұрын
Love your accent !
@AbhishekBM
@AbhishekBM 3 жыл бұрын
Scottish bloke
@shadinachat123
@shadinachat123 5 жыл бұрын
what ide are you using
@pkatan
@pkatan 5 жыл бұрын
Looks like Visual Studio Code
@NathanGrass
@NathanGrass 4 жыл бұрын
Pretty sure that it is VS Code (Visual Studio Code) which is FOSS (Free Open Source Software) and cross-platform (Mac, Windows, Linux).
@XxMissingDataxX
@XxMissingDataxX Жыл бұрын
what is Value? what does that do ?
@beastnighttv
@beastnighttv 3 жыл бұрын
You just got 2 subs
@bensavage6389
@bensavage6389 6 жыл бұрын
that cli is just the flag library built in to go! it adds version. big whoop. subcommands are done with parse(x) absolutely pants
Understanding Contexts in Go in 5(-ish?) Minutes
15:14
TutorialEdge
Рет қаралды 60 М.
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 9 МЛН
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 110 МЛН
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 25 МЛН
Building a CLI application with Golang
12:31
cdruc
Рет қаралды 35 М.
From Bash to Golang: Elevate Your Terminal Experience with Tview
26:02
Beginner's Guide to Redis with Go!
11:27
TutorialEdge
Рет қаралды 5 М.
Advanced Testing in Go
16:03
TutorialEdge
Рет қаралды 51 М.
Golang interactive CLI app with Cobra and Promptui | Tutorial
16:00
This Makes Golang CLI Development So MUCH Better
7:34
Melkey
Рет қаралды 22 М.
Go + Microservices = Go Kit [I] - Peter Bourgon, Go Kit
38:49
CNCF [Cloud Native Computing Foundation]
Рет қаралды 102 М.
Advanced Golang: Channels, Context and Interfaces Explained
22:17
Code With Ryan
Рет қаралды 114 М.
packagemain #20: Building a TCP Chat in Go
35:08
package main
Рет қаралды 48 М.
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 9 МЛН