Documentation
¶
Overview ¶
Package profiles loads and filters the agent profiles acurl fetches with.
Index ¶
- func Default() ([]types.Profile, error)
- func Filter(profiles []types.Profile, names []string) []types.Profile
- func FilterCategories(ps []types.Profile, categories []string) []types.Profile
- func Load(path string) ([]types.Profile, error)
- func Parse(data []byte) ([]types.Profile, error)
- func WithoutRobotsOnly(ps []types.Profile) []types.Profile
- type File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Filter ¶
Filter returns the profiles whose names match one of names (case-insensitive). An empty names list returns all profiles.
func FilterCategories ¶ added in v0.2.0
FilterCategories keeps profiles in one of categories, plus the browser baseline so that comparisons still work. Empty categories keep everything.
Types ¶
Click to show internal directories.
Click to hide internal directories.