shimgo

package
v1.10.10-go1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Net_Http_MethodGet     = "GET"
	Net_Http_MethodHead    = "HEAD"
	Net_Http_MethodPost    = "POST"
	Net_Http_MethodPut     = "PUT"
	Net_Http_MethodPatch   = "PATCH" // RFC 5789
	Net_Http_MethodDelete  = "DELETE"
	Net_Http_MethodConnect = "CONNECT"
	Net_Http_MethodOptions = "OPTIONS"
	Net_Http_MethodTrace   = "TRACE"
)

Variables

This section is empty.

Functions

func Bytes_LastIndexByte

func Bytes_LastIndexByte(s []byte, c byte) int

func Net_Http_BasicAuth

func Net_Http_BasicAuth(r *http.Request) (username, password string, ok bool)

func Net_Http_Server_ServeTLS

func Net_Http_Server_ServeTLS(srv *http.Server, l net.Listener, certFile, keyFile string) error

func Net_Url_PathEscape

func Net_Url_PathEscape(s string) string

func Os_LookupEnv

func Os_LookupEnv(key string) (string, bool)

func Strings_Compare

func Strings_Compare(a, b string) int

Compare returns an integer comparing two strings lexicographically. The result will be 0 if a==b, -1 if a < b, and +1 if a > b.

Compare is included only for symmetry with package bytes. It is usually clearer and always faster to use the built-in string comparison operators ==, <, >, and so on.

func Strings_LastIndexByte

func Strings_LastIndexByte(s string, c byte) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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