Golang Tutorial
Learn Golang tutorials with examples

May 21, 2022 · 2 min read
This tutorials shows multiple ways to iterate an array with index. Swift provides collection type such as Arrays, sets, and dictionaries. Let’s see an example for multiple ways to iterate an loop with index and an element in Swift array. How to iterate a loop with index an element in Swift Array? We use for loop to iterate an element in swift for-in loop iterates the loop for number of elements in an array....
May 21, 2022 · 3 min read
This tutorial discusses two methods for achieving reload/refresh in an angular framework. One is to use window.reload to reload the entire page, and the other is to use the onSameUrlNavigation-reload refresh component with an angle router. Sometimes, As a developer, you need to write a logic to reload a component or a page for the below cases. Refresh a component on a button click Reload a component data on the delete In Angular, page navigation can be done with or without the angular router module....
May 21, 2022 · 3 min read
Enum is a collection of constants. Sometimes, We have an enum object and need to pull all enum values populated in the Select/dropdown of an angular application. This tutorial talks about step by step tutorial about angular dropdown with values from enum constants. Let declare enum type in typescript for this examples export enum Weeks { MONDAY = 1, TUESDAY= 2, WEDNESDAY = 3, THURSDAY = 4, FRIDAY = 5, SATURDAY= 6, SUNDAY= 7, } This post will talk to you about how to populate enum string or numbers in HTML select/dropdown of an angular application...
May 21, 2022 · 1 min read
This program prints the current date and time in the system and UTC timezone. It uses the Chrono library to access current timestamp-related information. Let’s create a new rust project using cargo command. cargo new dateapp Next, Change the directory to dateapp cd dateapp Add the Chrono dependency in cargo.toml file [dependencies] chrono = "0.4" Now, Run the cargo build command to install all dependencies. cargo build Let’s write a code for the printing date in local and UTC format....
May 21, 2022 · 4 min read
In this tutorial, you learn how to convert a string or statement into Uppercase with Angular typescript. And also, How to use UpperCasePipe in Angular HTML and typescript components for example. Uppercase for a string is to convert all letters into Uppercase. We can achieve this using either writing our Code to convert or existing Angular UpperCasePipe. Angular core provides pipes UpperCasePipe which transforms a string into an Upper case string....
Recent posts
Multiple ways to iterate a loop with index and element in array in swift How to reload a page/component in Angular? How to populate enum object data in a dropdown in angular| Angular material dropdown example How to get the current date and time in local and UTC in Rust example Angular 13 UpperCase pipe tutorial | How to Convert a String to Uppercase example