Documentation ¶
Index ¶
- func CreateExplorationArray(rows int, cols int) [][]int
- func FetchMyPublicIP(host ...string) string
- func GetHomeDirectory() string
- func HandleError(err error)
- func NodeLength(node *Node) int
- func PrintArray(array [][]int)
- func PrintNodes(n Node)
- func ReadArray() ([][]int, int, int)
- func ReadRemoteIP(r *http.Request) string
- func RedirectToHTTPS(httpPort int, host string)
- func SetStaticContentPath(mapping string, path string)
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateExplorationArray ¶
CreateExplorationArray : creates an array with zeros of given rows and columns
func FetchMyPublicIP ¶
FetchMyPublicIP : This function will fetch public ip from ifconfig.co
func GetHomeDirectory ¶
func GetHomeDirectory() string
GetHomeDirectory : gets current user home directy
func ReadRemoteIP ¶
ReadRemoteIP : Reads the remote ip address from where the request came.
func RedirectToHTTPS ¶
RedirectToHTTPS : This will redirect request comming to port 80 to 443
func SetStaticContentPath ¶
SetStaticContentPath : Set the path from where the static content will be served
Types ¶
Click to show internal directories.
Click to hide internal directories.