util

package
v0.0.0-...-1380781 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const NOT_EXIST = "NOT_EXIST"

Variables

This section is empty.

Functions

func LineEventSourceToReplyString

func LineEventSourceToReplyString(es *linebot.EventSource) string

func LineEventSourceToString

func LineEventSourceToString(es *linebot.EventSource) string

func StringToLineEventSource

func StringToLineEventSource(s string) (*linebot.EventSource, error)

func StringsToLineEventSources

func StringsToLineEventSources(ss []string) ([]*linebot.EventSource, error)

Types

type ByKey

type ByKey []Pair

func (ByKey) Len

func (s ByKey) Len() int

func (ByKey) Less

func (s ByKey) Less(i, j int) bool

func (ByKey) Swap

func (s ByKey) Swap(i, j int)

type Pair

type Pair struct {
	Key   int
	Value string
}

func EntriesToSortedMap

func EntriesToSortedMap(entries []model.Entry) []Pair

Jump to

Keyboard shortcuts

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