Posts for Deven

Deven is an Entrepreneur, and Full-stack developer, Constantly learning and experiencing new things. He currently runs CodeSource.io and Dunebook.com
Deven
Deven wrote

Learn How to push an element to array in Mongoose

In this article, you are going to learn about how to push an element to an array in the Mongoose. An array is the most common data structure in all programming languages. You can store multiple data into the array. In databases like mongoose, arrays are widely used. You can store an array of strings, […]

December 14, 2021 in Code examples & Javascript
Deven
Deven wrote

Learn How to print Substring in Golang

In this article, you will learn about how to print Substring in the Go language. In the Go language, strings are nothing but a slice of bytes that is immutable. You can easily generate a substring in the Go language. It is a part of String. Before jump into generating a substring from a string, […]

December 14, 2021 in Code examples & GoLang
Deven
Deven wrote

Learn How to check if key exists in Map in Golang

In this article, you will learn about how to check if a key exists in a map in the Go language. Go language provides a built-in associative data type named Map which is basically a collection of key-value pairs. On the map, you can retrieve, delete or update values with the help of keys. As […]

December 14, 2021 in Code examples & GoLang
Deven
Deven wrote

Learn How to use strings in Golang

In this article, you are going to learn about how to use strings in the Go language. In Go language, strings are immutable which means it is a read-only slice of bytes. Once you have declared a string you will not be able to change it in the Go language. This makes strings different from […]

December 14, 2021 in Code examples & GoLang
Deven
Deven wrote

Learn How to iterate over a map in Golang

In this article, you are going to learn about how to iterate over a map in the Go language. Golang provides a built-in associative data type named Map which is basically a collection of key-value pairs. On the map, you can retrieve, delete or update values with the help of keys. It is also known […]

December 14, 2021 in Code examples & GoLang
Deven
Deven wrote

Learn How to create multi-select in Vue

In this article, you are going to learn about how to create multi-select in Vue. Vue is a modern JavaScript framework that is widely used in building user interfaces and progressive web applications. With Vue you can do lots of eye-catching things but here I will show you how you can build a custom multi-select […]

December 14, 2021 in Tutorials & Vue
Deven
Deven wrote

Learn How to fix the “data” option should be a function that returns a per-instance value in component definitions in Vue

In this article, you will learn about how to fix the “data” option should be a function that returns a per-instance value in component definitions in Vue. You often face some errors or warnings while working with vue at the very beginning level. Sometimes the errors and warnings are shown when you violate the basic […]

December 14, 2021 in Errors solved
Deven
Deven wrote

Learn How to insert jQuery into Html

In this article, you will learn about how to insert jQuery code into Html file. jQuery is a JavaScript library that is fast and lightweight. It helps you to modify Html documents by writing less code compared to JavaScript. To write jQuery code into Html you need to add jQuery into that specific Html file. […]

December 10, 2021 in Code examples
Deven
Deven wrote

Learn How to use goto statement in Golang

In this article, you will learn about how to use goto statement in Golang. Goto statement is found in many programming languages. It is altered the normal sequence of program execution by transferring control to some other part of the program. The goto statement is also known as the unconditional jump statement. In the Go […]

December 10, 2021 in Code examples & GoLang
Deven
Deven wrote

Learn how to use copy function in Golang

In this article, you are going to learn about how to use copy function in the Go language. In Go language, you can copy one slice into another slice. To do so, you need to use the copy() function. This function is provided by Go-builtin packages. It simply takes two slices that is dst and […]

December 10, 2021 in Code examples & GoLang
Deven
Deven wrote

Learn about Ternary operator in Golang

In this article, you will learn about the ternary operator in the Go language. A ternary operator is a kind of operator that takes three operands and helps programmers to make decisions. It is a shorter form of if else conditional statement. As it takes three operators, it is called the ternary operator. An example […]

December 9, 2021 in Code examples & GoLang
Deven
Deven wrote

Learn How to reverse a string in Golang

In this article, you will learn about how to reverse a string in the Go language. Reverse a string means printing a given string from the backward. Like, the first letter of a given string to the last and last one into the first and so on. You can perform this action in Go language […]

December 9, 2021 in Code examples & GoLang