Skip to content
/ cast Public

Simply cast an interface to a specific type in go, without panic !

License

Notifications You must be signed in to change notification settings

datasweet/cast

Repository files navigation

Cast

Circle CI Go Report Card GoDoc GitHub stars GitHub license

datasweet-logo

Cast is a Go package to simply cast an interface to a specific type in go, without panic !

Installation

go get github.com/datasweet/cast

Usage

Casting to a time.Time

import (
  "fmt"
  "github.com/datasweet/cast"
)

func main() {
  j := cast.AsDatetime("13/03/2019")
  fmt.Println(j)
}

Who are we ?

We are Datasweet, a french startup providing full service (big) data solutions.

Questions ? problems ? suggestions ?

If you find a bug or want to request a feature, please create a GitHub Issue.

License

This software is licensed under the Apache License, version 2 ("ALv2"), quoted below.

Copyright 2019 Datasweet <http://www.datasweet.fr>

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.

About

Simply cast an interface to a specific type in go, without panic !

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages