get

package
v0.0.0-...-800783e Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Copyright 2016 Wenhui Shen <www.webx.top>

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 ParseString

func ParseString(val string, typ string) interface{}

func SMapToIMap

func SMapToIMap(data map[string]string, typs map[string]string) map[string]interface{}

map[string]string => map[string]interface{}

Types

type IMap

type IMap map[string]interface{}

func (*IMap) BSlice

func (m *IMap) BSlice(k string) []byte

func (*IMap) Bool

func (m *IMap) Bool(k string) bool

func (*IMap) Bytes

func (m *IMap) Bytes(k string) []byte

func (*IMap) Float32

func (m *IMap) Float32(k string) float32

func (*IMap) Float64

func (m *IMap) Float64(k string) float64

func (*IMap) IMap

func (m *IMap) IMap(k string) map[string]interface{}

func (*IMap) ISlice

func (m *IMap) ISlice(k string) []interface{}

func (*IMap) Int

func (m *IMap) Int(k string) int

func (*IMap) Int16

func (m *IMap) Int16(k string) int16

func (*IMap) Int32

func (m *IMap) Int32(k string) int32

func (*IMap) Int64

func (m *IMap) Int64(k string) int64

func (*IMap) Int8

func (m *IMap) Int8(k string) int8

func (*IMap) Interface

func (m *IMap) Interface(k string) interface{}

func (*IMap) SMap

func (m *IMap) SMap(k string) map[string]string

func (*IMap) SSlice

func (m *IMap) SSlice(k string) []string

func (*IMap) String

func (m *IMap) String(k string) string

func (*IMap) Uint

func (m *IMap) Uint(k string) uint

func (*IMap) Uint16

func (m *IMap) Uint16(k string) uint16

func (*IMap) Uint32

func (m *IMap) Uint32(k string) uint32

func (*IMap) Uint64

func (m *IMap) Uint64(k string) uint64

func (*IMap) Uint8

func (m *IMap) Uint8(k string) uint8

type SMap

type SMap map[string]string

func (*SMap) ToIMap

func (t *SMap) ToIMap(typ map[string]string) map[string]interface{}

type ToIMap

type ToIMap struct {
	Data map[string]string
	Type map[string]string
}

func (*ToIMap) Interface

func (t *ToIMap) Interface() map[string]interface{}

Jump to

Keyboard shortcuts

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