This is the Linux app named cast whose latest release can be downloaded as v1.10.0sourcecode.tar.gz. It can be run online in the free hosting provider OnWorks for workstations.
Download and run online this app named cast with OnWorks for free.
Follow these instructions in order to run this app:
- 1. Downloaded this application in your PC.
- 2. Enter in our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.
- 3. Upload this application in such filemanager.
- 4. Start the OnWorks Linux online or Windows online emulator or MACOS online emulator from this website.
- 5. From the OnWorks Linux OS you have just started, goto our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.
- 6. Download the application, install it and run it.
SCREENSHOTS
Ad
cast
DESCRIPTION
Cast is a Go library that provides easy and safe conversion (casting) between different types in Go programs. Especially when dealing with interface{} or dynamic/reflect-heavy code, it becomes cumbersome to assert types or convert values reliably; cast addresses that by offering a suite of functions to convert from any input to the target type with predictable behaviour. Rather than relying purely on raw type assertions, it offers ToInt, ToString, ToBool, ToTime, etc., and their “error-returning” counterparts like ToIntE. It is particularly useful when dealing with data from YAML, TOML, JSON or other formats where the type can be uncertain. The design choice is to avoid guessing about conversions: e.g., only a string strictly representing an integer can convert to int. The library is mature, tested, and widely used—thus ideal for projects that must handle dynamic input gracefully.
Features
- Functions like ToInt, ToFloat64, ToString to convert arbitrary values
- Error-returning variants (e.g., ToIntE) to detect failed conversions
- Support for slices (e.g., ToStringSlice, ToFloat64Slice) and maps (ToStringMap)
- Strict conversion semantics: only obvious conversions allowed
- Works well with dynamic data sources (JSON/YAML/TOML) where types are uncertain
- Generics and type-alias support in recent versions to streamline usage
Programming Language
Go
Categories
This is an application that can also be fetched from https://sourceforge.net/projects/cast.mirror/. It has been hosted in OnWorks in order to be run online in an easiest way from one of our free Operative Systems.
