[13] Results

Golang : flag provided but not defined error

golang flag-provided parse-flag

Problem :

Your program uses flag.Parse() function to parse the command line arguments and everything is working fine until you….... read more

Golang : does not implement flag.Value (missing Set method)

golang method flag

Keep getting this error message : does not implement flag.Value (missing Set method) while trying to write example for flag.Var()….... read more

Golang : How to get URL port?

golang url parse splithostport

From the previous tutorial on how to break down a URL string, a reader emailed me wanting to….... read more

Golang : Get command line arguments

golang flag os

Basically there are two ways to get arguments from the command line in Go.

The first way is via….... read more

Javascript : Read/parse JSON data from HTTP response

javascript json parse

This is just a quick note on how to parse JSON data with Javascript. The JSON data is generated in….... read more

Golang : Parsing or breaking down URL

golang url parse fragment

Golang provides an easy way to consume and parse URL. It has a very neat package ( http://golang.org/pkg/net/url.... read more

Golang : Proper way to test CIDR membership of an IP 4 or 6 address example

golang CIDR ip-address contains parse-ip


You have generated a range of IP addresses from a given Classless Inter-Domain Routing address(CIDR) address and you want….... read more

Golang : Print how to use flag for your application example

golang flag-nflag prompt-usage-information

Just a short tutorial on how to usage flag package to check for the number of flag arguments require by….... read more