Press "Enter" to skip to content

Hands-On Golang Exercise – Map Add Record


hands-on exercise number nine using the

hands-on exercise number nine using the code from the previous example add a

code from the previous example add a

code from the previous example add a record to your map now print the map out

record to your map now print the map out

record to your map now print the map out using the range loop so all we have to

using the range loop so all we have to

using the range loop so all we have to do is add a record so let’s go add a

do is add a record so let’s go add a

do is add a record so let’s go add a record and we’ll go here if we just want

record and we’ll go here if we just want

record and we’ll go here if we just want to start from there let’s leet that one

to start from there let’s leet that one

to start from there let’s leet that one and so we want to add a record so to a

and so we want to add a record so to a

and so we want to add a record so to a director record we’ll do em and then the

director record we’ll do em and then the

director record we’ll do em and then the record and it’s going to be equal to

record and it’s going to be equal to

record and it’s going to be equal to some value which will be a slice of

some value which will be a slice of

some value which will be a slice of string and there so there’s our

string and there so there’s our

string and there so there’s our composite literal the type the curly

composite literal the type the curly

composite literal the type the curly braces and then the values and I don’t

braces and then the values and I don’t

braces and then the values and I don’t know who to do here so there’s a hard

know who to do here so there’s a hard

know who to do here so there’s a hard part let me think about that for a

part let me think about that for a

part let me think about that for a second

cigars espionage it’s true all right

cigars espionage it’s true all right and I’ll keep that consistent code

and I’ll keep that consistent code

and I’ll keep that consistent code consistency

Oh backticks actually in some ways read

Oh backticks actually in some ways read pretty well and there’s Ian Fleming

pretty well and there’s Ian Fleming

pretty well and there’s Ian Fleming alright so we added a record and it

alright so we added a record and it

alright so we added a record and it printed out too and that’s the that’s

printed out too and that’s the that’s

printed out too and that’s the that’s the solution for hands-on exercise

the solution for hands-on exercise

the solution for hands-on exercise number nine

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *