Ouzrour Website

Un site rapide, sécurisé et puissant.

Vues : 13886

Progression du site

17%

Go Beginner Level

Hello World App

Basic "Hello, World!" program in Go.

📅 2025-02-21 • ✅ 2025-02-21

Many Types

Demonstrates the declaration and use of various basic data types in Go, including integers, floats, strings, and booleans.

📅 2025-02-21 • ✅ 2025-02-21

Print Constants

A small program that defines and prints constant values, showcasing Go’s const keyword.

📅 2025-02-21 • ✅ 2025-02-21

Function Printing

Defines and calls user-defined functions to demonstrate syntax and modularization in Go.

📅 2025-02-23 • ✅ 2025-02-23

Swap Two Values

Swaps two integer values using a custom function

📅 2025-02-23 • ✅ 2025-02-23

Float64 to String & Vice Versa

Converts between float64 and string using formatting.

📅 2025-02-23 • ✅ 2025-02-23

Input & Output

Reads user input from console and prints it.

📅 2025-02-25 • ✅ 2025-02-25

Positive, Zero or Negative

Uses if-else to check if a number is positive, zero or negative.

📅 2025-02-25 • ✅ 2025-02-25

Odd or Even Detector

Checks if a given integer is odd or even.

📅 2025-02-25 • ✅ 2025-02-25

Largest of Three Numbers

Determines the biggest of three numbers.

📅 2025-02-25 • ✅ 2025-02-25

Printing from 1 to 10

Prints numbers from 1 to 10 using a for-loop.

📅 2025-02-25 • ✅ 2025-02-25

Inverse Printing from 10 to 1

Prints numbers from 10 to 1 using a reverse loop.

📅 2025-02-25 • ✅ 2025-02-25

Sum Numbers from 1 to 100

Calculates the sum of numbers from 1 to 100.

📅 2025-02-25 • ✅ 2025-02-25

Multiplication Table Generator

Prints multiplication table for a given number.

📅 2025-02-25 • ✅ 2025-02-25

Factorial Calculator

Creates a function to calculate factorial of a number.

📅 2025-02-25 • ✅ 2025-02-25

Number to Day

Maps numbers (1–7) to weekday names.

📅 2025-02-25 • ✅ 2025-02-25

Leap Year Detector

Checks if a year is a leap year .

📅 2025-02-26 • ✅ 2025-02-26

Reverse Strings

Reverses a given string and prints it.

📅 2025-02-26 • ✅ 2025-02-26

Vowel Counter

Counts the number of vowels in a string.

📅 2025-02-26 • ✅ 2026-02-26

Palindrome Checker

Checks if a string is a palindrome.

📅 2025-02-26 • ✅ 2025-02-26

Print an Array

Prints elements of a predefined array.

📅 2025-02-28 • ✅ 2025-02-28

Largest Number in an Array

Finds and prints the largest number in an array.

📅 2025-02-28 • ✅ 2025-02-28

Average of an Array

Calculates and prints the average of array elements.

📅 2025-02-28 • ✅ 2025-02-28

Append Elements to a Slice

Appends new elements to a slice while avoiding duplicates.

📅 2025-03-02 • ✅ 2025-03-02

Sum Elements of a Slice

Computes the sum of all elements in a slice.

📅 2025-03-02 • ✅ 2025-03-02

Go Medium Level

Remove Duplicates from a Slice

Removes duplicated elements from a slice using maps for uniqueness.

📅 2025-03-02 • ✅ 2025-03-02

Sort a Slice in Ascending Order

Sorts the values of a slice in ascending order using the sort package.

📅 2025-03-09 • ✅ 2025-03-09

Merge Two Slices

Merges two slices into one consolidated slice.

📅 2025-03-11 • ✅ 2025-03-11

Common Elements Between Two Slices

Detects and prints common elements between two slices.

📅 2025-03-11 • ✅ 2025-03-11

Create a Map

Creates a map and prints all its key-value pairs.

📅 2025-03-11 • ✅ 2025-03-11

Detect Word Repetition

Counts how many times each word appears in a string using a map.

📅 2025-03-11 • ✅ 2025-03-11

Key Exists in a Map

Checks if a specific key exists in a map and handles result gracefully.

📅 2025-03-12 • ✅ 2025-03-12

Key Exists in a Map

Checks if a specific key exists in a map and handles result gracefully.

📅 2025-03-12 • ✅ 2025-03-12

Delete Element from a Map

Deletes a given key from a map and prints the result.

📅 2025-03-12 • ✅ 2025-03-12

Create a Struct of a Person

Defines a Person struct and validates email format in its fields.

📅 2025-03-14 • ✅ 2025-03-14

Create a Method for a Person

Adds a method to the Person struct to greet using its name.

📅 2025-03-14 • ✅ 2025-03-14

Create and Print a Slice of Structs

Creates a slice of Person structs and prints each entry.

📅 2025-03-14 • ✅ 2025-03-14

Use defer in a Function

Demonstrates defer to delay execution until a function completes.

📅 2025-03-14 • ✅ 2025-03-14

Handle Conversion Errors from String to Integer

Uses strconv.Atoi and handles possible errors during conversion.

📅 2025-03-15 • ✅ 2025-03-15

Return Multiple Values from a Function

Defines a function that returns two values (e.g., sum and product).

📅 2025-03-15 • ✅ 2025-03-15

Implement a Simple Calculator

A calculator app that supports basic operations like add, subtract, etc.

📅 2025-03-16 • ✅ 2025-03-16

Function with Variadic Parameters

Writes a function that accepts an arbitrary number of integer parameters.

📅 2025-03-16 • ✅ 2025-03-16

Use Pointers to Modify a Variable Inside a Function

Demonstrates pointer usage to change a variable’s value within a function.

📅 2025-03-16 • ✅ 2025-03-16

Swap Two Numbers Using Pointers

Swaps the values of two integers using pointers.

📅 2025-03-16 • ✅ 2025-03-16

Recursive Fibonacci Generator

Calculates the Fibonacci sequence using a recursive function.

📅 2025-03-16 • ✅ 2025-03-16

Implement Bubble Sort on a Slice

Sorts a slice using the bubble sort algorithm.

📅 2025-03-16 • ✅ 2025-03-16

Create and Implement an Animal Interface

Defines an interface and implements it for Dog and Cat structs .

📅 2025-03-17 • ✅ 2025-03-17

Use Type Assertion with Interface

Uses type assertion to determine and handle dynamic interface types.

📅 2025-03-19 • ✅ 2025-03-19

Read File and Print Contents

Opens a text file and prints its entire content line by line.

📅 2025-03-19 • ✅ 2025-03-19

Write to a File

Creates or opens a file and writes data into it.

📅 2025-03-24 • ✅ 2025-03-24

Handle File Errors When Reading

Demonstrates robust error handling when reading a file.

📅 2025-03-24 • ✅ 2025-03-24

Simple To-Do List with Generics

Implements a basic To-Do List using Go Generics to manage tasks of any data type.

📅 2025-03-25 • ✅ 2025-03-25