zlsgo

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: MIT Imports: 4 Imported by: 0

README

English | 简体中文

Build Status GoDoc flat codecov

Golang daily development common function library

Documentation

Why Zara

  • Easy to use, lightweight enough

QuickStart

Install

$ go get github.com/sohaha/zlsgo

Usage

// main.go
package main 

import (
    "github.com/sohaha/zlsgo/znet"
)

func main(){
    r := znet.New()

    r.GET("/hi", func(c *znet.Context) {
        c.String(200, "Hello world")
     })

    znet.Run()
}

LICENSE

MIT

Documentation

Overview

Package zls is golang daily development of some commonly used functions set

See http://docs.73zls.com/

znet(Web development) https://godoc.org/github.com/sohaha/zlsgo/znet

ztype(Type correlation) https://godoc.org/github.com/sohaha/zlsgo/ztype

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestUtil

type TestUtil struct {
	T *testing.T
}

TestUtil Test aid

func NewTest

func NewTest(t *testing.T) *TestUtil

NewTest testing object

func (*TestUtil) Equal

func (u *TestUtil) Equal(expected, actual interface{})

Equal Equal

func (*TestUtil) Log

func (u *TestUtil) Log(v ...interface{})

func (*TestUtil) PrintMyName

func (u *TestUtil) PrintMyName() string

PrintMyName PrintMyName

func (*TestUtil) Unequal

func (u *TestUtil) Unequal(expected, actual interface{})

Unequal Unequal

Directories

Path Synopsis
Package zarray 数组操作
Package zarray 数组操作
* @Author: seekwe * @Date: 2019-05-29 15:15:22 * @Last Modified by: seekwe * @Last Modified time: 2019-05-29 15:15:34
* @Author: seekwe * @Date: 2019-05-29 15:15:22 * @Last Modified by: seekwe * @Last Modified time: 2019-05-29 15:15:34
Package zweb provides web service package main import ( "github.com/sohaha/zlsgo/znet" ) func main(){ r := znet.New() r.SetMode(znet.DebugMode) r.GET("/", func(c znet.Context) { c.String(200, "hello world") }) znet.Run() }
Package zweb provides web service package main import ( "github.com/sohaha/zlsgo/znet" ) func main(){ r := znet.New() r.SetMode(znet.DebugMode) r.GET("/", func(c znet.Context) { c.String(200, "hello world") }) znet.Run() }
Package zpprof provides a register for zweb framework to use net/http/pprof easily.
Package zpprof provides a register for zweb framework to use net/http/pprof easily.
Package zstring provides String related operations
Package zstring provides String related operations
Package ztype provides Variable Type Related Operations
Package ztype provides Variable Type Related Operations

Jump to

Keyboard shortcuts

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