Skip to content

Commit 1887b95

Browse files
committed
adding 5th question
1 parent 4b385eb commit 1887b95

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1237,6 +1237,7 @@
12371237
| 2 | [What are the pros and cons of Golang?](#what-are-the-pros-and-cons-of-golang)|
12381238
| 3 | [What kind of projects are suitable to be built in Golang?](#what-kind-of-projects-are-suitable-to-be-built-in-golang)
12391239
| 4 | [Is Golang an object oriented language?](#is-golang-an-object-oriented-language)
1240+
| 5 | [What are the data types in Golang?](#what-are-the-data-types-in-golang)
12401241

12411242

12421243

@@ -1281,4 +1282,17 @@
12811282

12821283
4. ### Is Golang an object oriented language?
12831284

1284-
Golang has types and methods and allows an object-oriented style of programming, there is no type hierarchy.Golang has some properties of object oriented programming like Encapsulation , Composition , but it doesn't have inheritance , classes , function overloading .
1285+
Golang has types and methods and allows an object-oriented style of programming, there is no type hierarchy.Golang has some properties of object oriented programming like Encapsulation , Composition , but it doesn't have inheritance , classes , function overloading .
1286+
1287+
1288+
**[ Back to Top ⬆ ](#table-of-contents---golang)**
1289+
1290+
5. ### What are the data types in Golang?
1291+
1292+
1. **Basic type**: Numbers, strings, and booleans .
1293+
2. **Aggregate type**: Array and structs .
1294+
3. **Reference type**: Pointers, slices, maps, functions, and channels .
1295+
4. **Interface type**
1296+
1297+
1298+
**[ Back to Top ⬆ ](#table-of-contents---golang)**

sentence_to_hashing_converter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ function hashing(num=0,str) {
2020
return `| ${num} | [${str}?](#${hashed})`
2121
}
2222

23-
console.log(hashing(5,'Is Golang an object oriented language'));
23+
console.log(hashing(6,'What are the data types in Golang'));

0 commit comments

Comments
 (0)