Skip to content

Commit

Permalink
format README files
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrtr committed Dec 6, 2021
1 parent 58cc087 commit a852125
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -522,12 +522,12 @@ type Interface interface {
Get(k interface{}) interface{}
// GetOrDefault returns the value to which the specified key is mapped, or the defaultValue if this map contains no mapping for the key.
GetOrDefault(k, defaultValue interface{}) interface{}
// GetFirstElement gets the first element from this map, which is the head of the list.
// It returns the (key, value, true) if the map isn't empty, or (nil, nil, false) if the map is empty.
GetFirstElement() (interface{}, interface{}, bool)
// GetLastElement gets the last element from this map, which is the tail of the list.
// It returns the (key, value, true) if the map isn't empty, or (nil, nil, false) if the map is empty.
GetLastElement() (interface{}, interface{}, bool)
// GetFirstElement gets the first element from this map, which is the head of the list.
// It returns the (key, value, true) if the map isn't empty, or (nil, nil, false) if the map is empty.
GetFirstElement() (interface{}, interface{}, bool)
// GetLastElement gets the last element from this map, which is the tail of the list.
// It returns the (key, value, true) if the map isn't empty, or (nil, nil, false) if the map is empty.
GetLastElement() (interface{}, interface{}, bool)

// ContainsKey returns true if this map contains a mapping for the specified key.
ContainsKey(k interface{}) bool
Expand Down
12 changes: 6 additions & 6 deletions README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -523,12 +523,12 @@ type Interface interface {
Get(k interface{}) interface{}
// GetOrDefault returns the value to which the specified key is mapped, or the defaultValue if this map contains no mapping for the key.
GetOrDefault(k, defaultValue interface{}) interface{}
// GetFirstElement gets the first element from this map, which is the head of the list.
// It returns the (key, value, true) if the map isn't empty, or (nil, nil, false) if the map is empty.
GetFirstElement() (interface{}, interface{}, bool)
// GetLastElement gets the last element from this map, which is the tail of the list.
// It returns the (key, value, true) if the map isn't empty, or (nil, nil, false) if the map is empty.
GetLastElement() (interface{}, interface{}, bool)
// GetFirstElement gets the first element from this map, which is the head of the list.
// It returns the (key, value, true) if the map isn't empty, or (nil, nil, false) if the map is empty.
GetFirstElement() (interface{}, interface{}, bool)
// GetLastElement gets the last element from this map, which is the tail of the list.
// It returns the (key, value, true) if the map isn't empty, or (nil, nil, false) if the map is empty.
GetLastElement() (interface{}, interface{}, bool)

// ContainsKey returns true if this map contains a mapping for the specified key.
ContainsKey(k interface{}) bool
Expand Down

0 comments on commit a852125

Please sign in to comment.