You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: rewrite_conf_load.go
    path of file: ./repos/bfe/bfe_modules/mod_rewrite
    
    the code of the file until where you have to start completion: // Copyright (c) 2019 The BFE Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of th
    
func ReWriteRuleCheck(conf ReWriteRuleFile) error {
	// check Cond
	if conf.Cond == nil {
		return errors.New("no Cond")
	}

	// check Actions
	if conf.Actions == nil {
		return errors.New("no Actions")
	}

	// check Action
	for _, ac := range conf.Actions {
		if ac.Cmd == "" {
			return errors.New("no Cmd")
		}
		_, ok := allowActions[ac.Cmd]
		if !ok {
			return fmt.Errorf("not allowed Cmd: %s", ac.Cmd)
		}
	}

	// check Last
	if conf.Last == nil {
		return errors.New("no Last")
	}

	return nil
}