utils

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Copyright 2017 bee authors

Licensed under the Apache License, Version 2.0 (the "License"): you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FILE

func FILE() string

__FILE__ returns the file name in which the function was invoked

func GetFileModTime

func GetFileModTime(path string) int64

GetFileModTime returns unix timestamp of `os.File.ModTime` for the given path.

func LINE

func LINE() int

__LINE__ returns the line number at which the function was invoked

func MacOSVersionSupport

func MacOSVersionSupport() bool

func Notify

func Notify(text, title string)

Types

type ListOpts

type ListOpts []string

func (*ListOpts) Set

func (opts *ListOpts) Set(value string) error

func (*ListOpts) String

func (opts *ListOpts) String() string

type StrFlags

type StrFlags []string

The string flag list, implemented flag.Value interface

func (*StrFlags) Set

func (s *StrFlags) Set(value string) error

func (*StrFlags) String

func (s *StrFlags) String() string

Jump to

Keyboard shortcuts

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