docs

Typesafe string interpolation and typedriven secret logging

License

License

GroupId

GroupId

io.github.afsalthaj
ArtifactId

ArtifactId

safe-string-interpolation-docs_2.12
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

docs
Typesafe string interpolation and typedriven secret logging
Project URL

Project URL

https://github.com/afsalthaj/safe-string-interpolation
Project Organization

Project Organization

safe-string-interpolation
Source Code Management

Source Code Management

https://github.com/afsalthaj/safe-string-interpolation

Download safe-string-interpolation-docs_2.12

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.afsalthaj/safe-string-interpolation-docs_2.12/ -->
<dependency>
    <groupId>io.github.afsalthaj</groupId>
    <artifactId>safe-string-interpolation-docs_2.12</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.afsalthaj/safe-string-interpolation-docs_2.12/
implementation 'io.github.afsalthaj:safe-string-interpolation-docs_2.12:1.1.0'
// https://jarcasting.com/artifacts/io.github.afsalthaj/safe-string-interpolation-docs_2.12/
implementation ("io.github.afsalthaj:safe-string-interpolation-docs_2.12:1.1.0")
'io.github.afsalthaj:safe-string-interpolation-docs_2.12:jar:1.1.0'
<dependency org="io.github.afsalthaj" name="safe-string-interpolation-docs_2.12" rev="1.1.0">
  <artifact name="safe-string-interpolation-docs_2.12" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.afsalthaj', module='safe-string-interpolation-docs_2.12', version='1.1.0')
)
libraryDependencies += "io.github.afsalthaj" % "safe-string-interpolation-docs_2.12" % "1.1.0"
[io.github.afsalthaj/safe-string-interpolation-docs_2.12 "1.1.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.7

Project Modules

There are no modules declared in this project.

Typesafe Interpolation

alt text Gitter Maven Central

An insanely simple type driven approach to string interpolation, aiming at consistent, secure, and only-human-readable logs and console outputs, and for safe string operations !

@ import $ivy.`io.github.afsalthaj::safe-string-interpolation:2.1.1`
import $ivy.$

@ import com.thaj.safe.string.interpolator._
import com.thaj.safe.string.interpolator._

@ case class Port(int: Int) extends AnyVal
defined class Port

@ val port = Port(1)
port: Port = Port(1)

@ ss"Db details: Port is ${port}"
cmd7.sc:1: could not find implicit value for parameter ev: com.thaj.safe.string.interpolator.Safe[ammonite.$sess.cmd5.Port]
val res7 = ss"Db details: Port is ${port}"
           ^
Compilation Failed

@ ss"Db details: Port is ${port.int}"
res7: SafeString = SafeString("Db details: Port is 1")

@ import instances._
import instances._

@ ss"Db details: Port is ${port}"
res9: SafeString = SafeString("Db details: Port is { int : 1 }")

@

Checkout the project website for more features and possibilities.

Versions

Version
1.1.0
1.0.3
1.0.0