README ¶ walker golang实现的刷步数的库,基于Zapp Life(原小米运动),支持手机号和邮箱两种登陆方式。 使用方法: func TestNewWalker(t *testing.T) { w := NewWalker(WithUid("手机号或者邮箱"), WithPasswd("密码"), WithStep("步数")) err := w.Do() if err != nil { log.Fatalln(err) } } 刷步原理 Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func NewWalker(opt ...WalkerOpt) *walker type WalkerOpt func WithPasswd(passwd string) WalkerOpt func WithStep(step string) WalkerOpt func WithUid(uid string) WalkerOpt Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewWalker ¶ func NewWalker(opt ...WalkerOpt) *walker NewWalker 构造函数 Types ¶ type WalkerOpt ¶ type WalkerOpt func(opts *walkerOpts) WalkerOpt walkerOpts helper func WithPasswd ¶ func WithPasswd(passwd string) WalkerOpt WithPasswd 设置密码 func WithStep ¶ func WithStep(step string) WalkerOpt WithStep 设置步数 func WithUid ¶ func WithUid(uid string) WalkerOpt WithUid 设置uid Source Files ¶ View all Source files walker.go Directories ¶ Show internal Expand all Path Synopsis internal base constant proto Click to show internal directories. Click to hide internal directories.