runtime

package
v0.0.0-...-924c5f7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(cond bool, message string)

Assert that the condition is true

func Contains

func Contains(bag, value interface{}) bool

Check that bag contains value

func IsAlpha

func IsAlpha(s string) bool

The string contains only alphabetic characters

func IsDigit

func IsDigit(s string) bool

The string contains only numeric characters

func IsLower

func IsLower(s string) bool

The string contains only lowercase characters

func IsSpace

func IsSpace(s string) bool

The string contains only whitespace characters

func IsUpper

func IsUpper(s string) bool

The string contains only uppercase characters

func Reverse

func Reverse(l List)

Reverse list in place

func Splits

func Splits(s string) []string

func TrimLeft

func TrimLeft(s string) string

Trim spaces on the left

func TrimRight

func TrimRight(s string) string

Trim spaces on the right

Types

type Any

type Any = interface{}

type Dict

type Dict = map[string]Any

type List

type List = []Any

type PyException

type PyException struct {
	// contains filtered or unexported fields
}

An error representing a python exception

func RaisedException

func RaisedException(exc interface{}) PyException

An error generated by "raise"

func (*PyException) Error

func (e *PyException) Error() string

Implement the error interface

type Tuple

type Tuple = []Any

Jump to

Keyboard shortcuts

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