This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"github.com/gin-gonic/gin" | |
"net/http" | |
) | |
func main() { | |
r := gin.Default() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# @param string $1 | |
# Input string. | |
# @param int $2 | |
# Cut an amount of characters from left side of string. | |
# @param int [$3] | |
# Leave an amount of characters in the truncated string. | |
substr() | |
{ |