An error occurs when executing the command “cannot use cli.StringFlag” error I got this error. cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal: cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver) If you prefix your cli.StringFlag with & as shown in this ticket, you’ll get an error… Read more Error in Go’s CLI package “urfave/cli”
What is idempotent? The idempotent is that the result of an operation is the same whether you perform it once or multiple times. HTTP Method GET・HEAD It makes sense that GET and HEAD are idempotent. What’s a bit tricky is that the response code returned to the client will vary. The GET response would be… Read more Is the HTTP method PUT and DELETE really idempotent ?
The behavior is different depending on whether or not there is a composer.lock file in the same hierarchy. If the composer.lock file does not exist composer install Look at composer.json and install the latest version of the package listed. After installation, a composer.lock is created. The composer.lock contains information about the packages you have installed.… Read more The difference between “composer install” and “composer update”
The difference between “forwarding” and “delegation” In object-oriented programming, “forwarding” and “delegation” are often confused. They both share the point that “there are two objects, and when you call the function ‘foo’ of object A, the function ‘foo’ of object B is called inside the function” The difference is that “After the function foo of… Read more What is the difference between “Forwarding” and “Delegation” ?