go_custom_utils

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 8 Imported by: 0

README

Go Reference Release

Import

import (
    gcu "github.com/Essentialutils/go_custom_utils"
)

Print Server Details

gcu.InfoPrint(gcu.InfoPrintData{
    ServerRunningPort: ":0000",
    ServerRunningMode: "Debug",
    OpenApiPath:       "/postman",
    Developer:         "Sharafas OM",
    Website:           "https://repad.dev/",
    Version:           "0.0.0",
})

output :

Alt text

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRunningMode

func GetRunningMode(isDebug bool) string

func GetWifiIP

func GetWifiIP() []map[string]string

GetWifiIP returns the IPv4 address of the Wi-Fi interface

func InfoPrint

func InfoPrint(v InfoPrintData)

func PrintInBox

func PrintInBox(title string, body string)

func PrintTable

func PrintTable(data [][]string)

func SetRunningMode

func SetRunningMode(isDebug bool)

Types

type InfoPrintData

type InfoPrintData struct {
	ServerRunningPort string
	ServerRunningMode string
	OpenApiPath       string
	Developer         string
	Website           string
	Version           string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL