<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: IVEWOR</title>
    <description>The latest articles on Forem by IVEWOR (@ivewor).</description>
    <link>https://forem.com/ivewor</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F644179%2F1c0b9042-1b69-4233-aa95-924ba09a3f90.jpeg</url>
      <title>Forem: IVEWOR</title>
      <link>https://forem.com/ivewor</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/ivewor"/>
    <language>en</language>
    <item>
      <title>**Rethinking My Career, and Life!</title>
      <dc:creator>IVEWOR</dc:creator>
      <pubDate>Wed, 17 Jul 2024 06:02:16 +0000</pubDate>
      <link>https://forem.com/ivewor/rethinking-my-career-and-life-43o</link>
      <guid>https://forem.com/ivewor/rethinking-my-career-and-life-43o</guid>
      <description>&lt;p&gt;It’s 2024, and six months have already passed. I have been coding and building websites since 2017. I won’t bore you with all the details, so let’s jump into the main part: why I should rethink everything.&lt;/p&gt;

&lt;h2&gt;
  
  
  Career
&lt;/h2&gt;

&lt;p&gt;As I mentioned, my professional career started in 2017. I was pursuing Chartered Accountancy after 12th grade, but due to some issues, I had to drop out, one reason being my interest in programming. I started learning on my own from the internet and got my first job in Chandigarh as a WordPress developer. Since then, I have been partially successful in transitioning to other technologies like pure backend or frontend.&lt;/p&gt;

&lt;p&gt;One reason for my partial success was that I was able to make good money, at least for me. I got new contracts and projects as a freelancer because of my problem-solving skills and ability to create nice user interfaces without using pre-built templates.&lt;/p&gt;

&lt;p&gt;Some might think there’s no problem-solving in WordPress, but speed is a major issue for WordPress website owners who rely heavily on plugins. I limit plugin usage by custom coding features, which became my selling point. Even though I lacked experience in PHP and never formally learned it, I managed by reading WordPress docs and looking at code.&lt;/p&gt;

&lt;p&gt;In 2023, I joined a web shop full-time, earning 1 lakh every month. My expenses were less than 30%, and I saved the rest, but I chose to invest in personal side projects, which amounted to nothing and wasted every penny.&lt;/p&gt;

&lt;p&gt;After three months, I got sick of the work because I wasn’t doing anything special for the past six years. I left the office to freelance for the same company and focus on side projects, but this cycle of working for three months and then leaving to work on side projects repeated without success.&lt;/p&gt;

&lt;p&gt;Eventually, I ran out of money, and freelancing work was at its lowest. The company I worked for shut down because the owner couldn’t handle running both it and a therapy center. Then the marriage happened, and now it’s July 2024.&lt;/p&gt;

&lt;p&gt;Although I got some freelancing work on Upwork, the platform is worse these days. I couldn’t focus on a full-time job even when it was enough for my living because of my business mindset, which never succeeded. I always thought I would succeed this time but always failed and burnt tons of money.&lt;/p&gt;

&lt;p&gt;I also tried stock trading and investment but, being impatient, never tasted success. Now, whenever I look at job posts, I feel I can’t do anything. Even for JavaScript developer positions, they ask for skills I never heard of or never used. I stayed back from applying because I probably worked on some of those things but never knew the professional terms.&lt;/p&gt;

&lt;p&gt;This is the main drawback of working too much with web shops and then looking for product-focused companies like most startups these days. Now, I’m 26, workless, and cannot apply for jobs because I don’t know everything they ask for.&lt;/p&gt;

&lt;p&gt;I can apply for entry-level jobs, but in India, they don’t pay much, and I won’t be able to survive on that alone. So, it’s not worth it. If I look for a job outside India, basically remote jobs, the same technology gap exists, and I don’t have a degree. I’m just a high school graduate and nothing else.&lt;/p&gt;

&lt;p&gt;Now, I’m in too much debt and can’t even focus on learning because every 30 days there’s a huge EMI to pay, and I can’t ask for help every month. My stress level is at an all-time high because of these things. I’m losing my hair every day. Life is at its worst spot right now, and it has been since mid-2023. But I have to take some action because there’s no option to leave everything behind.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Plan
&lt;/h2&gt;

&lt;p&gt;Frankly speaking, I’m not sure what the plan is, but I have to do something because I never planned for my life to be what it is today. I have started learning new things, focusing on React.js and Next.js. There are lots of entry-level jobs in these technologies, and I can get very good in a short span if I just do it every day. If I get a job, it will super boost my progress, reaching a level in three months that might take a year if I do it myself.&lt;/p&gt;

&lt;p&gt;I could write a lot more about this stuff, but this is the summary of everything going on.&lt;/p&gt;

</description>
      <category>career</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>wordpress</category>
    </item>
    <item>
      <title>Learning React: Creating a Roll a Dice App - R1</title>
      <dc:creator>IVEWOR</dc:creator>
      <pubDate>Tue, 18 Jun 2024 12:47:21 +0000</pubDate>
      <link>https://forem.com/ivewor/learning-react-creating-a-roll-a-dice-app-r1-13d4</link>
      <guid>https://forem.com/ivewor/learning-react-creating-a-roll-a-dice-app-r1-13d4</guid>
      <description>&lt;p&gt;It's not too late to learn react so, here is my journey. I will try to post everyday about the progress I made. I tried to learn react last year but was not able to finish it and now I'm again a noob. &lt;/p&gt;

&lt;p&gt;So, this is my 2nd shot in learning react. Haven't touched the basics of it but instead I will try to learn it by building some projects.&lt;/p&gt;

&lt;p&gt;The first project I build is Roll a Dice. This is a very simple one and gave a good idea of how the file structure works and everything to the base level in react. Also, I'm using next.js to build this small web application. I just want to be comfortable with both of these things at the same time that's why.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learn
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;React.js and Next.js file structure&lt;/li&gt;
&lt;li&gt;Running and creating a react application&lt;/li&gt;
&lt;li&gt;Some jsx&lt;/li&gt;
&lt;li&gt;HTML and CSS in react&lt;/li&gt;
&lt;li&gt;useState Hook&lt;/li&gt;
&lt;li&gt;and other basic stuff&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now, let's build.&lt;/p&gt;

&lt;h2&gt;
  
  
  Roll a Dice Web App in React.js and Next.js
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Create repo
&lt;/h3&gt;

&lt;p&gt;This is not necessary but it's an good idea to keep everything in Github repo for various needs. But mine is to have some commits everyday on my profile and learn every system that I need to accomplish in real world job. &lt;/p&gt;

&lt;p&gt;I just then cloned that repo in my system. Opened the terminal, cd into project directory.&lt;/p&gt;

&lt;h3&gt;
  
  
  Creating the project
&lt;/h3&gt;

&lt;p&gt;Since, I'm using Next.js so, the command to create the project will be:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npx create-next-app@latest .&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;.&lt;/code&gt; in the end so, it won't create another directory in the project project folder and take base directory name as it is.&lt;/p&gt;

&lt;p&gt;You can then select your preferred configuration like JS or TS. I'm using JS, for tailwind say no. Since it's a very small project we don't need that.&lt;/p&gt;

&lt;p&gt;After completion of the installation. Run the command to test if it's working.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm run dev&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Visit localhost:3000, you should see the vercel/next.js landing page.&lt;/p&gt;

&lt;p&gt;If upto this point if everything is working fine. Congratulations, we have now learned how to create a react project using next.js.&lt;/p&gt;

&lt;h3&gt;
  
  
  Clean up the files
&lt;/h3&gt;

&lt;p&gt;The next step is to clean some files and remove the unwanted code from our project.&lt;/p&gt;

&lt;p&gt;You can read about the &lt;a href="https://nextjs.org/docs/getting-started/project-structure"&gt;project structure here&lt;/a&gt;, I won't talk about this here. &lt;/p&gt;

&lt;p&gt;Remove everything except the page.js and layout.js from the src/app directory. &lt;/p&gt;

&lt;h4&gt;
  
  
  layout.js
&lt;/h4&gt;

&lt;p&gt;The default code should look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { Inter } from "next/font/google";
import "./globals.css";

const inter = Inter({ subsets: ["latin"] });

export const metadata = {
  title: "Create Next App",
  description: "Generated by create next app",
};

export default function RootLayout({ children }) {
  return (
    &amp;lt;html lang="en"&amp;gt;
      &amp;lt;body className={inter.className}&amp;gt;{children}&amp;lt;/body&amp;gt;
    &amp;lt;/html&amp;gt;
  );
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We're going to remove some of it and keep and add what we need for this project.&lt;/p&gt;

&lt;p&gt;Remove the second &lt;code&gt;import&lt;/code&gt; of CSS or just rename it to &lt;code&gt;style.css&lt;/code&gt;. We can keep the fonts. Next we have export metadata. We're going to change it instead of removing to&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export const metadata = {
  title: "Roll a Dice",
  description: "A simple roll a dice web app!",
};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next keep the remaining Root function. The end code of the file should look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { Inter } from "next/font/google";
import "./style.css";

const inter = Inter({ subsets: ["latin"] });

export const metadata = {
  title: "Roll a Dice",
  description: "A simple roll a dice web app!",
};

export default function RootLayout({ children }) {
  return (
    &amp;lt;html lang="en"&amp;gt;
      &amp;lt;body className={inter.className}&amp;gt;{children}&amp;lt;/body&amp;gt;
    &amp;lt;/html&amp;gt;
  );
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next, create a &lt;code&gt;style.css&lt;/code&gt; file under the same directory &lt;code&gt;src/app&lt;/code&gt;, because we need one style file and we imported it on the top of layout.js file.&lt;/p&gt;

&lt;h4&gt;
  
  
  page.js
&lt;/h4&gt;

&lt;p&gt;In this file, let's remove everything and write from the beginning. Let's first have a function to render our homepage with a simple heading text.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export default function Home() {
  return (
    &amp;lt;main className="page"&amp;gt;
      &amp;lt;h1&amp;gt;Roll a Dice&amp;lt;/h1&amp;gt;
    &amp;lt;/main&amp;gt;
  );
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this code, we have a simple react function which returns a simple &lt;code&gt;h1&lt;/code&gt; in our application.&lt;/p&gt;

&lt;p&gt;Next, we need the dice image and a button to roll it. We want the image to randomly change to another one upon clicking that button.&lt;/p&gt;

&lt;h4&gt;
  
  
  Images
&lt;/h4&gt;

&lt;p&gt;Before that let's collect some images for the dice. I have already downloaded them from the web. So, you can copy these &lt;a href="https://github.com/IVEWOR/roll-dice/tree/main/public"&gt;6 images from the repo&lt;/a&gt;. Store them in the public folder. Make sure it is present in the root directory, same level as &lt;code&gt;src&lt;/code&gt; directory.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;- roll-dice
-- src/app
-- public/all-your-images.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Make sure the dice images are named like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dice-1.png
dice-2.png
...
dice-6.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can name it whatever you want just please adjust it accordingly in the code.&lt;/p&gt;

&lt;h4&gt;
  
  
  page.js
&lt;/h4&gt;

&lt;p&gt;Now, let's create an image and the button, which we talked earlier. For the image we need to import the &lt;code&gt;Image&lt;/code&gt; component from next.js since we're using next.js.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import Image from "next/image";

export default function Home() {
  return (
    &amp;lt;main className="page"&amp;gt;
      &amp;lt;div className="img-side"&amp;gt;
        &amp;lt;Image src="/dice-1.png" width="400" height="400" /&amp;gt;
      &amp;lt;/div&amp;gt;

      &amp;lt;div className={"text-side"}&amp;gt;
        &amp;lt;h1&amp;gt;Roll a Dice&amp;lt;/h1&amp;gt;
        &amp;lt;p&amp;gt;
          Roll a Dice is a user-friendly web app that simulates dice rolls.
          Perfect for games or decision-making, it offers quick, random results
          with a single click.
        &amp;lt;/p&amp;gt;
        &amp;lt;button&amp;gt;Roll the dice&amp;lt;/button&amp;gt;
      &amp;lt;/div&amp;gt;
    &amp;lt;/main&amp;gt;
  );
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, our web app looks like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fztiu6fxlqthvb18232qo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fztiu6fxlqthvb18232qo.png" alt="Image description" width="800" height="536"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  style.css
&lt;/h4&gt;

&lt;p&gt;Let's add some styling to it. I won't talk about this much. Here's the CSS:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;body {
  background-color: #f0f0f0;
  padding: 10px;
}

body,
* {
  margin: 0;
}

.page {
  max-width: 850px;
  padding: 20px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 28px;
  display: grid;
  gap: 20px;
  align-items: center;
}

.img-side img {
  width: 350px;
  height: auto;
  max-width: 100%;
}

.text-side h1 {
  margin-bottom: 10px;
}

.text-side button {
  padding: 12px 28px;
  line-height: 1;
  border: solid 2px #222;
  background-color: #222;
  color: #fff;
  font-size: 17px;
  letter-spacing: 0.5px;
  border-radius: 18px;
  margin-top: 30px;
  cursor: pointer;
  transition: cubic-bezier(0.6, -0.28, 0.735, 0.045) 0.2s all;
}

.text-side button:hover {
  opacity: 0.9;
}

@media (min-width: 850px) {
  .page {
    grid-template-columns: 1fr 1fr;
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, the web app looks like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgawj9gbe8jnhi7zz3py2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgawj9gbe8jnhi7zz3py2.png" alt="Image description" width="800" height="350"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Adding the functionality
&lt;/h4&gt;

&lt;p&gt;Again in &lt;code&gt;page.js&lt;/code&gt;, we're going to import a useState which an react hook using &lt;code&gt;import { useState } from "react";&lt;/code&gt;. First let's do the destructuring and initialize the variable with 1.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import Image from "next/image";
import { useState } from "react";

export default function Home() {

const [num, setNum] = useState(1);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then we're going to create random number generator function inside our &lt;code&gt;Home&lt;/code&gt; function, which is going to return a number from 1 to 6.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import Image from "next/image";
import { useState } from "react";

export default function Home() {

  const [num, setNum] = useState(1);

  const randomNumberInRange = (min, max) =&amp;gt; {
    return Math.floor(Math.random() * (max - min + 1)) + min;
  }


....rest of the code
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, we need a function that fires our &lt;code&gt;randomNumberInRange&lt;/code&gt; function.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import Image from "next/image";
import { useState } from "react";

export default function Home() {
  const [num, setNum] = useState(1);

  const randomNumberInRange = (min, max) =&amp;gt; {
    return Math.floor(Math.random() * (max - min + 1)) + min;
  };

  const handleClick = () =&amp;gt; {
    setNum(randomNumberInRange(1, 6));
  };

  return (

....rest of the code
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, we have to assign the &lt;code&gt;handleClick&lt;/code&gt; function to the button. So, it works on click. Let's do that:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;button onClick={handleClick}&amp;gt;Roll the dice&amp;lt;/button&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We're mostly done with our web app. We just need to make some adjustments in the &lt;code&gt;Image&lt;/code&gt; tag so, it can use the random &lt;code&gt;num&lt;/code&gt; from our function. To do that, modify the &lt;code&gt;Image&lt;/code&gt; &lt;code&gt;src&lt;/code&gt; to &lt;code&gt;&amp;lt;Image src={"/dice-" + num + ".png"} width="400" height="400" /&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Now, the &lt;code&gt;page.js&lt;/code&gt; code should look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"use client";

import Image from "next/image";
import { useState } from "react";

export default function Home() {
  const [num, setNum] = useState(1);

  const randomNumberInRange = (min, max) =&amp;gt; {
    return Math.floor(Math.random() * (max - min + 1)) + min;
  };

  const handleClick = () =&amp;gt; {
    setNum(randomNumberInRange(1, 6));
  };

  return (
    &amp;lt;main className="page"&amp;gt;
      &amp;lt;div className="img-side"&amp;gt;
        &amp;lt;Image src={"/dice-" + num + ".png"} width="400" height="400" /&amp;gt;
      &amp;lt;/div&amp;gt;

      &amp;lt;div className={"text-side"}&amp;gt;
        &amp;lt;h1&amp;gt;Roll a Dice&amp;lt;/h1&amp;gt;
        &amp;lt;p&amp;gt;
          Roll a Dice is a user-friendly web app that simulates dice rolls.
          Perfect for games or decision-making, it offers quick, random results
          with a single click.
        &amp;lt;/p&amp;gt;
        &amp;lt;button onClick={handleClick}&amp;gt;Roll the dice&amp;lt;/button&amp;gt;
      &amp;lt;/div&amp;gt;
    &amp;lt;/main&amp;gt;
  );
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, if you click on the button. The image should start changing like rolling a dice.&lt;/p&gt;

&lt;p&gt;And that's it for this web app, atleast for now.&lt;/p&gt;

&lt;p&gt;If you have any suggestions or feedback, then please share! &lt;a href="https://github.com/IVEWOR/roll-dice"&gt;The repo is here&lt;/a&gt;&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>programming</category>
      <category>beginners</category>
      <category>react</category>
    </item>
    <item>
      <title>Learn GO: Creating Variables in GO Lang</title>
      <dc:creator>IVEWOR</dc:creator>
      <pubDate>Wed, 12 Jun 2024 20:55:27 +0000</pubDate>
      <link>https://forem.com/ivewor/learn-go-creating-variables-in-go-lang-5dim</link>
      <guid>https://forem.com/ivewor/learn-go-creating-variables-in-go-lang-5dim</guid>
      <description>&lt;p&gt;I just started learning Go and I want myself to be fully committed to it. So, I thought may be should start writing about it. It will help me to basically learn each part in some more details and will also help me to track the progress.&lt;/p&gt;

&lt;p&gt;I won't be talking about why you should or should not use this language. I just finds this very beautiful and as I always wanted to learn a low level language.&lt;/p&gt;

&lt;p&gt;So, let's get started with our first tutorial on how to create variables in GO.&lt;/p&gt;

&lt;p&gt;Go is an statically typed language. Basically, we need to assign a the variable type in order to create one like we in other languages such as TypeScript and C++. &lt;/p&gt;

&lt;p&gt;For creating a variable in GO the syntax looks like this:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;_var_ variableName type = "value"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;For example, if I have to create a variable of string then I'd do something like this:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;_var_ myVariable string = "hola hola!!"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;However, type is not always necessary as we can also specify the type in value, like this:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;_var_ myVariable = "hola hola!!"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;As strings are in quotes which is used to define strings in a language.&lt;/p&gt;

&lt;p&gt;Another version of creating variable is the below one. Which is quite fancy and short, and will probably makes you look like an expert.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;myVariable := "hola hola!"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This is short declaration of a variable which is pretty useful and great.&lt;/p&gt;

&lt;p&gt;Next we can also make creating variables more cooler 😎. By assinging several variables at once. Like this:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;var me, myGF, myWife := "programmer", "programmer", "scientist"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Now, there are various data types in GO such as string, float, int, int8,  int16, int32, int64, uint, uint8, uint16, uint32, uint64, uintptr, and so on. You read more about &lt;a href="https://go.dev/tour/basics/11"&gt;GO Data Types here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;There are other things in GO variables as well. Which I will be talking about in the next post, for now that's it.&lt;/p&gt;

&lt;p&gt;If you have questions of suggestions for me to improve do let me know.!!&lt;/p&gt;

</description>
      <category>go</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
