// MustString returns the content of the file with given name as string.
// panic's on error.
518872
func (b *Box) MustString(name string) string {
	str, err := b.String(name)
	if err != nil {
		panic(err)
	}
	return str
}
491257
func (f *Forms) MustString(key string, defaults ...string) string {
	if v := (*http.Request)(f).FormValue(key); len(v) > 0 {
		return v
	}
	if len(defaults) > 0 {
		return defaults[0]
	}
	return ""
}
805268
func MustParse(expressionText string) Node {
	n, err := ParseExpression(expressionText)
	if err != nil {
		panic(err.Error())
	}
	return n
}
1024765
func (v *Value) ToString() (val string, ok bool) {
	switch v.vType {
	case typeString:
		val, ok = v.value.(string)
	default:
	}
	return
}
522781
func ToString(v Value) string {
	if s, ok := v.(String); ok {
		return string(s)
	}
	return StringOf(v)
}
355590
func (d *Decoder) MustDecode(v interface{}) {
	if d.err != nil {
		panic(d.err)
	}
	d.mustDecode(v)
}
436798
func MustParse(v string) *Version {
	sv, err := NewVersion(v)
	if err != nil {
		panic(err)
	}
	return sv
}
793807
func MustParse(rawurl string) *URL {
	u, err := Parse(rawurl)
	if err != nil {
		panic(err)
	}
	return u
}
1031255
func (e *Error) GoString() string {
	if e == nil {
		return "nil"
	}
	if e.debugInfo {
		return fmt.Sprintf("package: %v - file: %v - line: %v - error: %v", e.pkg, e.file, strconv.Itoa(e.line), e.formatError())
	}
	return fmt.Sprintf("%#v", e.formatError())
}
58758
func MustRead(in []byte) {
	n, err := Read(in)
	if err != nil {
		panic(err)
	}
	if n != len(in) {
		panic("did not read enough random data: only " + strconv.Itoa(n) + " bytes")
	}
}
289754
func MustCompile(str string) *regexp.Regexp {
	re, err := regexpContainer.Get(str)
	if err != nil {
		// regexp.MustCompile() like message
		panic(`regexpcache: Compile(` + quote(str) + `): ` + err.Error())
	}
	return re
}
967558
func MustParse(v interface{}) []string {
	if command, err := Parse(v); err == nil {
		return command
	} else {
		panic(err.Error())
	}
}
123049
func ValidateString(r *http.Request, name string, re ...*regexp.Regexp) bool {
	value := r.FormValue(name)
	if len(re) == 0 {
		return value != ""
	}

	return re[0].MatchString(value)
}
860665
func MustGet(req *http.Request, param string) string {
	if !IsGet(req) {
		panic(InvalidMethodError{})
	}
	v := req.FormValue(param)
	if v == "" {
		panic(MissingParameterError(param))
	}
	return v
}
191504
func (c *Context) MustGet(key string) interface{} {
	if value, exists := c.Get(key); exists {
		return value
	}
	panic("Key \"" + key + "\" does not exist")
}
365895
func MustIDFromString(s string) sha1 {
	b, _ := hex.DecodeString(s)
	return MustID(b)
}
550204
func MustParse(args ...string) Value {
	v, err := Parse(args...)
	if err != nil {
		panic(err)
	}
	return v
}