Documentation
¶
Index ¶
- func Base64Id() *base64Id
- func CheckInvalidHeaderChar(val string) bool
- func CleanPath(p string) string
- func ClearInterval(timer *Timer)
- func ClearTimeout(timer *Timer)
- func Contains(haystack string, needles []string) string
- func Log() *debug
- func NewUtf8Decoder(r io.Reader) io.Reader
- func NewUtf8Encoder(w io.Writer) io.Writer
- func StripHostPort(h string) string
- func Utf8decodeBytes(src []byte) (dst []byte)
- func Utf8decodeString(byteString string) string
- func Utf8encodeBytes(src []byte) []byte
- func Utf8encodeString(str string) string
- func Utf16Count(src []byte) (n int)
- func Utf16CountString(src string) (n int)
- func Utf16Len(v rune) int
- type ParameterBag
- func (p *ParameterBag) Add(key string, value string)
- func (p *ParameterBag) All() map[string][]string
- func (p *ParameterBag) Count() int
- func (p *ParameterBag) Get(key string, _default ...string) (string, bool)
- func (p *ParameterBag) GetFirst(key string, _default ...string) (string, bool)
- func (p *ParameterBag) GetLast(key string, _default ...string) (string, bool)
- func (p *ParameterBag) Gets(key string, _default ...[]string) ([]string, bool)
- func (p *ParameterBag) Has(key string) bool
- func (p *ParameterBag) Keys() []string
- func (p *ParameterBag) Peek(key string, _default ...string) string
- func (p *ParameterBag) Remove(key string)
- func (p *ParameterBag) Replace(parameters map[string][]string)
- func (p *ParameterBag) Set(key string, value string)
- type Timer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckInvalidHeaderChar ¶
func ClearInterval ¶
func ClearInterval(timer *Timer)
func ClearTimeout ¶
func ClearTimeout(timer *Timer)
func NewUtf8Encoder ¶
NewEncoder returns an io.Writer that writes lowercase hexadecimal characters to w.
func StripHostPort ¶
func Utf8decodeBytes ¶
func Utf8decodeString ¶
func Utf8encodeBytes ¶
func Utf8encodeString ¶
func Utf16Count ¶
func Utf16CountString ¶
Types ¶
type ParameterBag ¶
type ParameterBag struct {
// contains filtered or unexported fields
}
func NewParameterBag ¶
func NewParameterBag(parameters map[string][]string) *ParameterBag
func (*ParameterBag) Add ¶
func (p *ParameterBag) Add(key string, value string)
Add adds the value to key. It appends to any existing values associated with key.
func (*ParameterBag) All ¶
func (p *ParameterBag) All() map[string][]string
*
- Returns the parameters. *
- @return array An array of parameters
func (*ParameterBag) Count ¶
func (p *ParameterBag) Count() int
*
- Returns the number of parameters. *
- @return int The number of parameters
func (*ParameterBag) Get ¶
func (p *ParameterBag) Get(key string, _default ...string) (string, bool)
*
- Returns a parameter by name. *
- @param string key The key
- @param mixed default The default value if the parameter key does not exist *
- @return mixed
func (*ParameterBag) GetFirst ¶
func (p *ParameterBag) GetFirst(key string, _default ...string) (string, bool)
*
- Returns a parameter by name. *
- @param string key The key
- @param mixed default The default value if the parameter key does not exist *
- @return mixed
func (*ParameterBag) GetLast ¶
func (p *ParameterBag) GetLast(key string, _default ...string) (string, bool)
*
- Returns a parameter by name. *
- @param string key The key
- @param mixed default The default value if the parameter key does not exist *
- @return mixed
func (*ParameterBag) Gets ¶
func (p *ParameterBag) Gets(key string, _default ...[]string) ([]string, bool)
*
- Returns a parameter by name. *
- @param string key The key
- @param mixed default The default value if the parameter key does not exist *
- @return mixed
func (*ParameterBag) Has ¶
func (p *ParameterBag) Has(key string) bool
*
- Returns true if the parameter is defined. *
- @param string $key The key *
- @return bool true if the parameter exists, false otherwise
func (*ParameterBag) Keys ¶
func (p *ParameterBag) Keys() []string
*
- Returns the parameter keys. *
- @return array An array of parameter keys
func (*ParameterBag) Remove ¶
func (p *ParameterBag) Remove(key string)
*
- Removes a parameter. *
- @param string $key The key
func (*ParameterBag) Replace ¶
func (p *ParameterBag) Replace(parameters map[string][]string)
*
- Replaces the current parameters by a new set. *
- @param array parameters An array of parameters
func (*ParameterBag) Set ¶
func (p *ParameterBag) Set(key string, value string)
*
- Sets a parameter by name. *
- @param string key The key
- @param mixed value The value
Click to show internal directories.
Click to hide internal directories.