util

package
v0.0.0-...-e1804a1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TryAppend

func TryAppend(s, suffix string) string

TryAppend tries to append the given suffix if it does not ends in the s.

func TryPrepend

func TryPrepend(s, prefix string) string

TryPrepend tries to prepend the given prefix if it does not start in the s.

Types

type ResponseWriterLog

type ResponseWriterLog struct {
	*http.Request
	// contains filtered or unexported fields
}

func (*ResponseWriterLog) ContentType

func (r *ResponseWriterLog) ContentType() string

func (*ResponseWriterLog) Header

func (r *ResponseWriterLog) Header() http.Header

func (*ResponseWriterLog) LogResponse

func (r *ResponseWriterLog) LogResponse()

func (*ResponseWriterLog) Write

func (r *ResponseWriterLog) Write(bytes []byte) (int, error)

func (*ResponseWriterLog) WriteHeader

func (r *ResponseWriterLog) WriteHeader(statusCode int)

Jump to

Keyboard shortcuts

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