util

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

*

  • Copyright 2015 @ 56x.net.
  • name : category
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : validate
  • author : jarryliu
  • date : 2016-07-23 15:42
  • description :
  • history :

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckChineseCardID

func CheckChineseCardID(sId string) error

检查中国公民身份证号码是否正确

func IterateCategory

func IterateCategory(categories []*proto.SProductCategory, c *proto.SProductCategory,
	iterateFunc CategoryFormatFunc, finishFunc CategoryFormatFunc, level int)

遍历栏目

func WalkArticleCategory

func WalkArticleCategory(cs *proto.ArticleCategoriesResponse, v *proto.SArticleCategory, start iterator.WalkFunc, over iterator.WalkFunc)

迭代栏目

func WalkSaleCategory

func WalkSaleCategory(cs []*proto.SProductCategory, v *proto.SProductCategory, start iterator.WalkFunc, over iterator.WalkFunc)

迭代栏目

Types

type CategoryFormatFunc

type CategoryFormatFunc func(c *proto.SProductCategory, level int)

Jump to

Keyboard shortcuts

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