Sha256: 9df77041883d3c3305cad25b5e4853701753b6ea480775f07030db9cf8b47e2e

Contents?: true

Size: 416 Bytes

Versions: 3

Compression:

Stored size: 416 Bytes

Contents

module Ar2gostruct
  module CONST
    TYPE_MAP = {
      "string"     => "string",
      "text"       => "string",
      "boolean"    => "bool",
      "integer(1)" => "int8",
      "integer(2)" => "int16",
      "integer(3)" => "int32",
      "integer(4)" => "int32",
      "integer(8)" => "int64",
      "float"      => "float64",
      "datetime"   => "time.Time",
      "date"       => "time.Time"
    }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ar2gostruct-0.2.2 lib/ar2gostruct/const.rb
ar2gostruct-0.2.1 lib/ar2gostruct/const.rb
ar2gostruct-0.2.0 lib/ar2gostruct/const.rb