field

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker interface {
	// 指定pkg,分析其中源码,找出含有指定包调用的地方,再检测参数里涉及的结构体和字段是否匹配
	CheckField(pkg string) error
	// 注册包,后续检查只针对这些包的调用
	RegisterPkg(pkg string)
}

针对github.com/fishedee/tools/query,对于Column(objs, "id")这种调用,检查obj结构体中是否存在id字段

func New

func New() Checker

Jump to

Keyboard shortcuts

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