[98] Results

Grep : How to grep for strings inside binary data

grep binary text string

Grep or Global Regular Expression Print is a very useful Unix/Linux command that I've practically used everyday. So, recently a….... read more


Golang : Interpolating or substituting variables in string examples

golang interpolate substitute text-template variables string

For this quick tutorial, we will explore how to interpolate(substitute) actual data into variables inside a string. Will keep these….... read more


Golang : Turn string or text file into slice example

golang text-string convert-to-slice delete copy append

Alright, I need to parse a large number of text files that contain some raw data generated by a machine.….... read more


Golang : Frobnicate or tweaking a string example

golang hex embed-include-data executable-binary-file secret-text-string utf8

A simple example of how to frobnicate(tweaking) a string with UTF-8 characters. Useful in obscuring plain text in embedded….... read more


Golang : Embed secret text string into binary(executable) file

golang embed-include-data executable-binary-file secret-text-string hex

Problem:

You want to hide certain plain text string that you plan to embed(include) in your executable or binary file.….... read more


Golang : Convert lines of string into list for delete and insert operation

golang container-list push-delete-pop-remove linked-list text-string

Problem:

You want to convert a list of items in text format into a list. With the list, you want….... read more


Golang : How to call function inside template with template.FuncMap

golang html-template funcmap call-function wordwrap text-template

Alright, just a simple tutorial on how to call your own function inside HTML template. For this example, we will….... read more


Golang : Get remaining text such as id or filename after last segment in URL path

golang filepath-base basename extract-remaining-text-after-slash

Problem:

Retrieving the last segment/part or the remaining text after a slash in the URL or filename in a path….... read more


Advertisement