mrlib

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int2ip

func Int2ip(number uint32) net.IP

func Ip2int

func Ip2int(ip net.IP) (uint32, error)

func Ip2intMust

func Ip2intMust(ip net.IP) uint32

func MimeTypeByExt added in v0.5.4

func MimeTypeByExt(ext string) string

Types

type BuilderPath added in v0.7.0

type BuilderPath struct {
	// contains filtered or unexported fields
}

func NewBuilderPath added in v0.7.0

func NewBuilderPath(basePath string) *BuilderPath

NewBuilderPath - sample /dir/{{path}}/postfix -> /dir/real-value/postfix

func NewBuilderPathWithPlaceholder added in v0.8.0

func NewBuilderPathWithPlaceholder(basePath, placeholder string) *BuilderPath

func (*BuilderPath) FullPath added in v0.7.0

func (p *BuilderPath) FullPath(path string) string

Jump to

Keyboard shortcuts

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