utils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDiffItems

func GetDiffItems(oldItems []types.Item, newItems []types.Item) []types.Item

func GetItems

func GetItems(token string, url string) (types.ItemResult, error)

func GetMsg

func GetMsg(item types.Item, link string) string

func GetToken

func GetToken(auth *types.AuthInfo) (string, error)

func SendImage added in v0.0.2

func SendImage(url string, user types.RecInfo) error

func SendMessage

func SendMessage(msg string, user string) error

func SetForegroundWindow

func SetForegroundWindow(hWnd win.HWND) bool

func ValidateConfig

func ValidateConfig(file string) (*types.Config, error)

func WordSepNormalizeFunc

func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName

WordSepNormalizeFunc changes all flags that contain "_" separators

Types

This section is empty.

Jump to

Keyboard shortcuts

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