Filter interviews by
I applied via Naukri.com and was interviewed in Mar 2022. There were 2 interview rounds.
Const variables are immutable and can be used to declare values that won't change during runtime. String replace replaces a substring with another in a string.
Const variables are declared using the 'const' keyword and cannot be reassigned.
String replace can be used to replace a substring with another in a string.
Example: const pi = 3.14; str := 'Hello World'; newStr := strings.Replace(str, 'World', 'Golang', -1);
Exampl...
REST API can be implemented in both Golang and other languages using HTTP methods and JSON data format.
In Golang, we can use third-party packages like Gorilla Mux and net/http to create REST APIs.
We can define routes and handlers for each HTTP method like GET, POST, PUT, DELETE.
We can use JSON encoding and decoding to send and receive data in REST API calls.
In other languages, we can use frameworks like Flask in Python...
Go does not have traditional OOP concepts like classes and inheritance, but it does support some OOP principles.
Go supports encapsulation through the use of structs and methods.
Polymorphism can be achieved through interfaces.
Inheritance is not supported, but composition can be used instead.
Go also supports abstraction through the use of interfaces and packages.
Top trending discussions
I applied via Naukri.com and was interviewed before Aug 2020. There were 4 interview rounds.
posted on 26 May 2022
I applied via Approached by Company and was interviewed before May 2021. There were 2 interview rounds.
based on 2 reviews
Rating in categories
TCS
Accenture
Wipro
Cognizant