Pop

package
v0.0.0-...-5993f49 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 0 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL