- What's the difference between absolute and relative paths?
An absolute path starts with the / (root) path, while a relative path does not. To obtain an absolute path from a relative one, it must be joined to the current working directory. - How do you obtain or change the current working directory?
To find out the current working directory, the os package offers the Getwd function, which returns the current working directory. To change the current working directory, the Chdir function must be used. It accepts both relative and absolute paths. - What are the advantages and downfalls of using ioutil.ReadAll?
The ioutil.ReadAll function places the entire file contents in a byte slice, so the size of file influences the amount of memory allocated, and then released. Since there is no recycling of the memory allocated this...
Germany
Slovakia
Canada
Brazil
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
United States
Great Britain
India
Spain
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
France
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Australia
Japan
Russia