Cobra is a powerful command line package for Golang. The full list of what projects use Cobra is here.
Install Cobra in your machine:
go get -u -v github.com/spf13/cobra
Yet, you do not need to create files of our app. There is a generator, which helps to create a working directory very easily.
To install the generator use this command:
go get -u -v github.com/spf13/cobra/cobra
Before we start coding, let’s review a help message we are going to create with the Cobra package.
A help message (or usage message, or doc) is what users see when they
They found me on LinkedIn and sent me a beautiful job description without any essential information. For example, in this document I did not find any information about a language. Russian or English? For me it is extremely important.
Me: “Okay, I suggest having a call and discussing this position. I am available on … and on…. “
HR: “Before an interview, you should perform a test task”.
And she sent me the description.
Test task for Jane
Do this and this in Russian language.
Me:”This test is not complicated. However, I write technical texts only in English. What is…
Scheduling a call with a person is easy. You can directly contact a person and arrange anything. However, what about scheduling a call with a person through a middleman?
A recruitment agency is looking for a candidate for an abroad company (yes, they are still looking because of their aggressive conversations). Time difference between me and the company is huge.
A known fact is making arrangements via a middleman can be problematic. You cannot be sure that person on the other side got all your words correctly and you get their words correctly as well.
I thought the hiring manager…
Argparse is a command-line parser for Go. The package automatically generates a help message without predefining it. You probably have heard about Argparse for Python. It brings some features to the Argparse package for Go.
Install the package to your computer:
go get -u -v github.com/akamensky/argparse
The -u flag instructs go get
to use the network to update the named packages and their dependencies. By default, get uses the network to check out missing packages but does not use it to look for updates to existing packages.
The -v flag enables verbose progress and debug output.
See this resource to…
Docopt is a command-line interface description language. It has many implementations for different programming languages. In this tutorial, we’ll discuss the Go version: Docopt Go.
This library gives programmers the ability to describe a program interface with a well-structured help message.
Install Docopt on your computer with this command:
$ go get -u -v github.com/docopt/docopt.go
The -u flag instructs go get to use the network to update the named packages and their dependencies. By default, get uses the network to check out missing packages but does not use it to look for updates to existing packages.
The -v flag enables…
Do you ever feel like your language learning is not progressing?
I have been learning English with private tutors since 2017. This month it is already 3 years of my learning process. I practised lessons with Russians, people who speak English as a second language, and natives.
From all these tutors I heard stories about students. Tutors were different, but the stories were the same. Some of them are positive, some are not. But what is common in all these stories is that most students have prejudice about tutors. It is hard to admit, but I had some prejudice too.
…
I have been thinking about creating bots for Telegram. I use Telegram a lot, so I got many ideas to help me to simplify my routines. One of these ideas is especially useful for language learners — a dictionary.
In this guide, we are going to discuss how to create a dictionary bot for Telegram. I tried to make this material as easy as possible. I divided the entire programming process into several small steps:
This story is part of the hiring process. First, I had an interview with a hiring manager which was not interesting. The next step is …
After the first interview, the next step is performing a test task, which makes me feel nauseous. You can read why I hate tests here.
It is a common practice to give a test right after a short call. Why? One possible reason is companies do not want to spend their time on you. (Spoiler: they will). Rude, but true.
HR: “.. then, if the test is okay we will invite you to the…
Before this interview, I had a short call with the hiring manager. Also, I performed a test, which was assessed at a low level by a team. The last step is the interview with this team.
The interview has started. Just audio. I see only a black screen and hear a variety of voices, I guess 5 or 6 including HR, director and team.
Crappy.
During the first 2 minutes, they have interrupted me 3 times.
Team: “Could you tell me what tools you use for writing.” Me: “I use this, this, this and Vim.“ Director: (laughing hysterically) “Vim? Seriously…
Several years ago I was a junior developer with high ambitions to create web apps. Once I got an idea to analyze all money that I spend to understand my expenses better. I needed an application which could store payments, show statistics graphs, and give more than just a colourful circle graph with all payments in a month.
For these reasons, I decided to develop an app and include all the features that I wanted.
I am going to discuss with you the design of a relational database, which I made for this app.
I explored this question with an…
Technical Writer in Software Industry