Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cec47d2

Browse files
updating first question on golang
1 parent 040da7a commit cec47d2

File tree

2 files changed

+32
-13
lines changed

2 files changed

+32
-13
lines changed

‎README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@
12151215
**[ Back to Top ⬆ ](#table-of-contents---mongodb-and-mongoose)**
12161216

12171217

1218-
16. ### What are disadvantages of using jwt based authentication?
1218+
17. ### What are disadvantages of using jwt based authentication?
12191219

12201220

12211221

@@ -1228,4 +1228,24 @@
12281228

12291229

12301230

1231-
1231+
### Table of Contents - Golang
1232+
1233+
| No. | Questions |
1234+
| --- | --------- |
1235+
| | **Golang** |
1236+
| 1 | [What is Golang?](#what-is-golang)|
1237+
| 2 | [What are the pros and cons of Golang?](#what-are-the-pros-and-cons-of-golang)|
1238+
| 3 | [What kind of projects are suitable to be built in Golang?](#what-kind-of-projects-are-suitable-to-be-built-in-golang)
1239+
| 4 | [Explain how Golang works in layman terms?](#explain-how-golang-works-in-layman-terms)
1240+
| 5 | [Is Golang an object oriented language?](#is-golang-an-object-oriented-language)
1241+
1242+
1243+
1244+
1245+
1. ### What is Golang?
1246+
1247+
1248+
Golang is a statically typed, compiled programming language designed at Google by Robert Griesemer, Rob Pike, and Ken Thompson. Golang was designed at Google in 2007 to improve programming productivity in an era of multicore, networked machines and large codebases.
1249+
1250+
1251+
**[ Back to Top ⬆ ](#table-of-contents---golang)**

‎sentence_to_hashing_converter.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,15 @@ Output: "#what-are-jwt"
99
this can be used to link questions
1010
1111
*/
12-
13-
function hashing(str) {
14-
return (
15-
'#' +
16-
str
17-
.trim('')
18-
.split(' ')
19-
.map((ele) => ele.toLowerCase())
20-
.join('-')
21-
);
12+
// | 3 | [What kind of projects are suitable to be built in go?](#what-kind-of-projects-are-suitable-to-be-built-in-go)|
13+
function hashing(num=0,str) {
14+
15+
const hashed =str
16+
.trim('')
17+
.split(' ')
18+
.map((ele) => ele.toLowerCase())
19+
.join('-')
20+
return `| ${num} | [${str}?](#${hashed})`
2221
}
2322

24-
console.log(hashing('What are JWT'));
23+
console.log(hashing(5,'Is Golang an object oriented language'));

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /