Articles on Trending Technologies

Technical articles with clear explanations and examples

Golang Program to create Complex numbers from given imaginary parts using In-build Library Function

Akhil Sharma
Akhil Sharma
Updated on 14-Nov-2022 859 Views

In this tutorial we will learn how to create Complex numbers from given imaginary parts in Go programming language. A complex number is a basic data type of GoLang and is a combination of the real and imaginary part, where both parts of the complex number will be float type in golang. Complex Number = Real Number + Imaginary Number The function complex()in Go programming language is a built-in function that is used to construct a complex number from two floating-point values. The real and imaginary parts of the complex value must be of the same size and the return ...

Read More

Golang Program to convert string type variables into Boolean

Akhil Sharma
Akhil Sharma
Updated on 14-Nov-2022 6K+ Views

In this tutorial, we will learn how to f convert string type variables into Boolean in Go programming language. Boolean Vs String Boolean is a data type having 1-byte size. It can store any one of the three values mainly True, False or none. It acts like a flag to show whether a condition is correct or not. String data type is used to store a sequence of characters. it can be in the form of literals or alphabets. The size of string variable is 1 byte or 8 bits. For this task various types of string conversions are needed, ...

Read More

Golang Program to convert Decimal to Octal

Akhil Sharma
Akhil Sharma
Updated on 14-Nov-2022 908 Views

In this article you will know how to convert the decimal number to octal in Go language. For this we are going to use the FormatInt() function of strconv package. When we say convert the decimal number to octal, it means to convert the number with the base value 10 to the base value 8. The base value means the number of digits required to represent the numeric value. Example 1: Go Language Program to convert Decimal Number to Octal using Library Function Syntax func FormatInt(input int64, base int) string for [condition | ( init; condition; increment) | Range] ...

Read More

Golang Program to convert Decimal to Hexadecimal

Akhil Sharma
Akhil Sharma
Updated on 14-Nov-2022 3K+ Views

In this article you will learn the go language code to convert decimal number to Hexadecimal. Decimal Number Vs Hexadecimal Numbers Decimal numbers are the numbers which have base 10, which means each digit of a number can have an integer value ranging from 0 to 9 (10 possibilities) depending on its position. For example, 23 is a decimal number. Any number contains 16 digits in it, it is based on base 16, which means hexadecimal numbers contains decimal number from 0 to 9 and extra 6 Alphabets. A−F. In go language all the hexadecimal numbers start with 0x or ...

Read More

Golang Program to convert Boolean to String

Akhil Sharma
Akhil Sharma
Updated on 14-Nov-2022 5K+ Views

In this tutorial, we will learn how to convert Boolean to a string in Go programming language. Boolean Vs String Boolean is a data type having 1 byte size. It can store any one of the three values mainly True, False or none. It act like a flag to show whether a condition is correct or not. String data type is used to store a sequence of characters. it can be in the form of literals or alphabets. The size of string variable is 1 byte or 8 bits. Example 1: Convert Boolean type to String USING strconv.FormatBool() Method Syntax ...

Read More

Golang Program to Check if An Array Contains a Given Value

Akhil Sharma
Akhil Sharma
Updated on 14-Nov-2022 29K+ Views

In this tutorial we will learn how to check if a given value is present in a Go−lang array or not. We will use 2 methods for this. Method 1: Using a for loop directly in the main function We will use a for loop to iterate over the elements of an array in Golang and check for the equality of values using the equality operator. If the values match then we can stop the iteration and say that the given value is present in the array. Method 2: Using the function Golang does not have any pre-defined library function ...

Read More

How to play QuickTime MOV files using the Video.js player?

Prince Yadav
Prince Yadav
Updated on 14-Nov-2022 4K+ Views

Video.js is an open-source, HTML5 web video player. It supports a variety of HTML5 media source extensions along with modern video playback technologies like YouTube, HLS Stream, etc. through plugins. Video.js supports video playback on a range of display sizes with a plethora of devices like desktops and mobile devices. In this tutorial, we're going to learn how to play the QuickTime MOV files using in our web browser using video.js. MOV is a very common video container used in Apple's QuickTime player for storing movies and video files. These containers use a compression algorithm designed by Apple Computer and ...

Read More

How to setup Video.js with Vue.js?

Prince Yadav
Prince Yadav
Updated on 11-Nov-2022 4K+ Views

Video.js is a modern web video player which supports a lot of standard video playback formats along with the latest playback video formats. Video.js is very popular for creating video players and has large community support. One of the greatest things about video.js is that it is very straightforward to import and use in your project. It also provides support for various popular frameworks like React.js, Vue.js, and Angular.js In this tutorial, we’re going to have a look at how to set up video.js with the vue.js framework. We’ll also implement a basic example to create a video player using ...

Read More

How to setup Video.js with ReactJS?

Prince Yadav
Prince Yadav
Updated on 11-Nov-2022 5K+ Views

Video.js is a simple, straightforward, and easy-to-use modern video player which lets supports a video variety of video playback formats like mp4, FLV, etc. as well as modern formats like video playback formats like YouTube, Vimeo, flash, etc. The best thing about video.js is that is very easy to import and use in our project. In this article, we're going to see how to use the video.js library in our React project with the help of a few examples. How to setup Video.js with ReactJS? For using video.js in our project with react.js, we first need to create a react ...

Read More

How to setup Video.js with AngularJS?

Prince Yadav
Prince Yadav
Updated on 11-Nov-2022 2K+ Views

Video.js is a modern web video player which is used for creating video players for different video playback formats. It supports all the modern video formats like Youtube, Vimeo, Flash, etc along with all the standard video playback formats like mp4, webm, flv, etc. Video.js can be integrated with a wide range of popular frameworks like React, Angular, etc. In this article, we'll specifically learn how to set up video.js with AngularJS. We'll create a video.js component using AngularJS and then use it in our project. How to set up Video.js with AngularJS? For using video.js with AngularJS, we need ...

Read More
Showing 42611–42620 of 61,297 articles
Advertisements