Documentation
¶
Overview ¶
Pop test
Example ¶
s := StringStack{"Hello, World!"}
if value, ok := s.Pop(); ok {
fmt.Println(value)
} else {
fmt.Println("empty")
}
if value, ok := s.Pop(); ok {
fmt.Println(value)
} else {
fmt.Println("empty")
}
Output: Hello, World! empty
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringStack ¶
type StringStack []string
func (*StringStack) Pop ¶
func (s *StringStack) Pop() (string, bool)
Click to show internal directories.
Click to hide internal directories.