anonnagh Goto Github PK
Name: Anonna Ferdaus
Type: User
Company: AnonnoTa
Bio: Hi! I am Anonna Ferdaus, a software engineer and graphic designer.
Location: kuril,Dhaka
Name: Anonna Ferdaus
Type: User
Company: AnonnoTa
Bio: Hi! I am Anonna Ferdaus, a software engineer and graphic designer.
Location: kuril,Dhaka
I am learning Golang .
lower case to Upper case conversion in golang
The f function now has access to the x variable. Now suppose that we wrote this instead:
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000.
Go also has support for constants. Constants are basically variables whose values cannot be changed later. They are created in the same way you create variables but instead of using the var keyword we use the const keyword:
We use another function from the fmt package to read the user input (Scanf). &input will be explained in a later chapter, for now all we need to know is that Scanf fills input with the number we enter.
The for statement allows us to repeat a list of statements (a block) multiple times.
If statements also have an optional else part. If the condition evaluates to true then the block after the condition is run, otherwise either the block is skipped or if the else block is present that block is run. If
A function is a group of statements that exist within a program for the purpose of performing a specific task. At a high level, a function takes an input and returns an output.
A function is an independent section of code that maps zero or more input parameters to zero or more output parameters.
An example program using numbers.
A function is an independent section of code that maps zero or more input parameters to zero or more output parameters.
A function is an independent section of code that maps zero or more input parameters to zero or more output parameters.
Functions in Golang can return multiple values, which is a helpful feature in many practical scenarios. This example declares a function with two return values and calls it from a main function.
An anonymous function is a function that was declared without any named identifier to refer to it. Anonymous functions can accept inputs and return outputs, just as standard functions do.
An array is a numbered sequence of elements of a single type with a fixed length.
This program computes the average of a series of test scores. If you run it you should see 86.6. Let's walk through the program: • First we create an array of length 5 to hold our test scores, then we fill up each element with a grade • Next we setup a for loop to compute the total score • Finally we divide the total score by the number of elements to find the average
Go also provides a shorter syntax for creating arrays:
print slice
An example program using two numbers
If you want to create a slice you should use the built-in make function:
Go includes two built-in functions to assist with slices: append and copy. Here is an example of append:
After running this program slice1 has [1,2,3] and slice2 has [1,2]. The contents of slice1 are copied into slice2, but since slice2 has room for only two elements only the first two elements of slice1 are copied.
Go supports the same four basic arithmetic operations such as addition, subtraction, multiplication, and division.
Go has special syntax for increment and decrement. ++ syntax for increment. a++ means a = a + 1 — syntay for decrement. a— means a = a - 1 For
In fmt library, it provides a feature to get input from keyboard. We can use Scanf(). For illustration, we calculate circle area. In this case, we need an input for radius value. Create a folder, called inputdemo.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.