mirror of
https://github.com/ggicci/httpin.git
synced 2024-12-02 09:01:33 +02:00
10 lines
184 B
Go
10 lines
184 B
Go
package httpin
|
|
|
|
type Directive struct {
|
|
Key string // e.g. query.page, header.x-api-token
|
|
}
|
|
|
|
func BuildDirective(key string) (*Directive, error) {
|
|
return &Directive{Key: key}, nil
|
|
}
|