kmgSlice

package
v0.0.0-...-05317bf Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArithmeticSequence

func ArithmeticSequence(start int, end int, step int) (output []int)

等差数列 print from start to end ,not include end. it is valid input ,if step <0 it will panic will invalid input if start==end,it will output []int{}

func IntRangeSlice

func IntRangeSlice(n int) []int

a slice with content 0->n-1

func IntSliceRemove

func IntSliceRemove(s *[]int, v int)

remove thing which value is v

func IntSliceRemoveAt

func IntSliceRemoveAt(s *[]int, i int)

remove thing at index i

Types

type KeyValuePair

type KeyValuePair struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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