Documentation ¶
Index ¶
- type DataOptions
- type LasType
- func (l *LasType) Column(key string) []string
- func (l *LasType) ColumnCount() (count int)
- func (l *LasType) CurveParams() map[string]WellProps
- func (l *LasType) Data() [][]string
- func (l *LasType) DataStruct(opt *DataOptions) []interface{}
- func (l *LasType) Header() ([]string, error)
- func (l *LasType) HeaderAndDesc() map[string]string
- func (l *LasType) LogParams() map[string]WellProps
- func (l *LasType) Other() string
- func (l *LasType) RowCount() (count int)
- func (l *LasType) ToCSV(filename string)
- func (l *LasType) Version() (version string)
- func (l *LasType) WellParams() map[string]WellProps
- func (l *LasType) Wrap() (wrap bool)
- type PostUnmarshaler
- type StructorConfig
- type WellProps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataOptions ¶
type DataOptions struct { // ConcreteStruct can be set to any concrete struct (not a pointer). // When set, the mapstructure package is used to convert the returned // results automatically from a map to a struct. The `dbq` struct tag // can be used to map column names to the struct's fields. // // See: https://godoc.org/github.com/mitchellh/mapstructure ConcreteStruct interface{} // DecoderConfig is used to configure the decoder used by the mapstructure // package. If it's not supplied, a default StructorConfig is assumed. This means // WeaklyTypedInput is set to true and no DecodeHook is provided. // // See: https://godoc.org/github.com/mitchellh/mapstructure DecoderConfig *StructorConfig // ConcurrentPostUnmarshal can be set to true if PostUnmarshal must be called concurrently. ConcurrentPostUnmarshal bool }
DataOptions is used to modify the default behavior.
type LasType ¶
type LasType struct {
// contains filtered or unexported fields
}
LasType is the main type definition
func (*LasType) ColumnCount ¶
ColumnCount - Returns the number of columns in a .las file
func (*LasType) CurveParams ¶
CurveParams - Returns Curve Parameters
func (*LasType) DataStruct ¶
func (l *LasType) DataStruct(opt *DataOptions) []interface{}
DataStruct just like Data but returns output in specified struct format
func (*LasType) HeaderAndDesc ¶
HeaderAndDesc return the name and description of each log entry
func (*LasType) WellParams ¶
WellParams - Returns Overrall Well Parameters
type PostUnmarshaler ¶
type PostUnmarshaler interface { // PostUnmarshal is called for each row after all results have been fetched. // You can use it to further modify the values of each ConcreteStruct. PostUnmarshal(ctx context.Context, row, count int) error }
PostUnmarshaler allows you to further modify all results after unmarshaling. The ConcreteStruct pointer must implement this interface to make use of this feature.
type StructorConfig ¶
type StructorConfig struct { // DecodeHook, if set, will be called before any decoding and any // type conversion (if WeaklyTypedInput is on). This lets you modify // the values before they're set down onto the resulting struct. // // If an error is returned, the entire decode will fail with that // error. DecodeHook mapstructure.DecodeHookFunc // If WeaklyTypedInput is true, the decoder will make the following // "weak" conversions: // // - bools to string (true = "1", false = "0") // - numbers to string (base 10) // - bools to int/uint (true = 1, false = 0) // - strings to int/uint (base implied by prefix) // - int to bool (true if value != 0) // - string to bool (accepts: 1, t, T, TRUE, true, True, 0, f, F, // FALSE, false, False. Anything else is an error) // - empty array = empty map and vice versa // - negative numbers to overflowed uint values (base 10) // - slice of maps to a merged map // - single values are converted to slices if required. Each // element is weakly decoded. For example: "4" can become []int{4} // if the target type is an int slice. // WeaklyTypedInput bool }
StructorConfig is used to expose a subset of the configuration options provided by the mapstructure package.
See: https://godoc.org/github.com/mitchellh/mapstructure#DecoderConfig