Here, We will see how to use while loop in go . There is no such while loop in go. There is only one loop i.e for…
Category: packages
Here, We will see How to create directory in go. We can do it by using Mkdir() function in os package in go golang. Function prototype: func Mkdir(dir…
Here, We will see how to get all environment variables in go. We can do it by using Environ() function in os package in go golang. Function prototype:…
Here, We will see how to delete all environment variables in go. We can do it by using Clearenv() function in os package in go golang. Function prototype:…
Here, We will learn how to set the value of the environment variable in go. We can do it by using Setenv() function in os package in go…
Here, We will learn how to get host name reported by the kernel in go. We can do it by using Hostname() function in os package in go…
Here, We will learn how to get the numeric user id of the caller in go. We can do it by using Getuid() function in os package in…
Here, We will learn how to get the process id of the parent of caller in go. We can do it by using Getppid() function in os package…
Here, We will learn how to get the process id of the caller in go. We can do it by using Getpid() function in os package in go…
Here, We will learn how to get the underlying memory page size of system in go. We can do it by using Getpagesize() function in os package in…