Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
777ee716
Commit
777ee716
authored
Jul 21, 2008
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
map delete
SVN=128258
parent
820f223a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
go_lang.txt
doc/go_lang.txt
+6
-0
No files found.
doc/go_lang.txt
View file @
777ee716
...
...
@@ -1609,6 +1609,12 @@ the value is assigned and the second, boolean variable is set to true. Otherwise
the variable is unchanged, and the boolean value is set to false.
value, present = map_var[key]
To delete a value from a map, use a tuple assignment with the map on the left
and a false boolean expression as the second expression on the right, such
as:
map_var[key] = value, false
In assignments, the type of the expression must match the type of the left-hand side.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment