netmask

package module
v0.0.0-...-940bd1d Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NetMaskString

func NetMaskString(mask net.IPMask) string

Types

type Model

type Model struct {
	Size  int
	IpNet net.IPNet
}

func New

func New(networkAddress string) Model

func (Model) AsMask

func (m Model) AsMask() string

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Run

func (m Model) Run() (net.IPMask, error)

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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