kayroy247 / Concat

A Solidity library to concatenate 2 strings.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Concat library

A simple library to concatenate 2 or more strings.

How to use

import "@kaysoft/concat";

contract UseConcatLibrary {

    using StringConcat for string;
    string name = "Kaysoft";
    

    function joinStrings() external returns( string memory ){
        return name.concat(" Security").concat(" Research");
        //This will return "Kaysoft Security Research"
    }
}

About

A Solidity library to concatenate 2 strings.


Languages

Language:Solidity 100.0%